{"name":"escape-delims","description":"Escape and un-escape delimiters in templates. Tested with Lo-Dash, underscore and Handlebars syntax, but could be used with other template engines/syntaxes as well. This is similar to the process used by Yeoman on escaped templates in generators.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/escape-delims","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/escape-delims.git"},"bugs":{"url":"https://github.com/jonschlinkert/escape-delims/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/escape-delims/blob/master/LICENSE-MIT"}],"keywords":["RegExp","assemble","atpl","cache","compile","consolidate","content","data","delimiters","delims","demlim","demlimiter","demlimiters","demlims","docs","documentation","dot","dust","dustjs-helpers","dustjs-linkedin","eco","ect","ejs","engine","engines","escape","escaping","express","expressions","front","generate","generator","gray-matter","haml-coffee","hamljs","handlebars","hogan.js","jade","jazz","jqtpl","liquor","lo-dash","lodash","markdown","matter","mocha","mote","mustache","noop","nunjucks","parse","parser","parsers","pass-through","process","qejs","ractive","re","regex","regular","render","should","swig","template","templates","templayed","toffee","transform","underscore","verb","view","walrus","whiskers","yaml"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":"^0.2.15","verb-tag-jscomments":"^0.2.2"},"dependencies":{"delims":"^0.3.0"},"_id":"escape-delims@0.3.0","_shasum":"4ec29c2964df982a46ca5bd2ead8beaa8bbb89f9","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4ec29c2964df982a46ca5bd2ead8beaa8bbb89f9","tarball":"http://registry-npm.ywwl.com/escape-delims/download/escape-delims-0.3.0.tgz","integrity":"sha512-btwVdSTDiuMNKcTQ6FL+OnUUa6eA26LD2dABtAqs1KschhgzGHsIoRK09J6Piv5R/KaMOv2paOaKm0fPPFen0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDtheiC6TR64Zrd/9zwaY7k2nTLq+Jv7XmPkG/8/wpE8AiEA8FtgueK/BZPqW8JXeGHr1xjHxeuCTi9mFMIXNu06u3Y="}],"size":4130,"noattachment":false,"key":"/escape-delims/-/escape-delims-0.3.0.tgz"},"directories":{},"readme":"# escape-delims [![NPM version](https://badge.fury.io/js/escape-delims.svg)](http://badge.fury.io/js/escape-delims)\n\n> Escape and un-escape delimiters in templates. Tested with Lo-Dash, underscore and Handlebars syntax, but could be used with other template engines/syntaxes as well. This is similar to the process used by Yeoman on escaped templates in generators.\n\n## Install\n### Install with [npm](npmjs.org):\n\n```bash\nnpm i escape-delims --save-dev\n```\n\n## Usage\n\n```js\nvar EscapeDelims = require('escape-delims');\n```\n\n## API\n## [EscapeDelims](index.js#L34)\n\nCreate a new instance of `EscapeDelims()`:\n\n* `from` **{Array}**: Optionally pass delimiters to use for escaping. Defaults to `['{%%', '%}']`.    \n* `to` **{Array}**: Optionally pass delimiters to use for un-escaping. Defaults to `['{%%', '%}']`.    \n\n```js\nvar EscapeDelims = require('escape-delims');\nvar escapeDelims = new EscapeDelims();\n```\n\nOptionally pass the \"escape delimiters\" to use as an array:\n\n```js\nvar escapeDelims = new EscapeDelims(['<%%', '%>']);\n```\n\n## [.escape](index.js#L59)\n\nEscape the given `str`, optionally passing a delimiter `syntax` to use if not defined in the constructor.\n\n* `str` **{String}**: The string with delimiters to escape.    \n* `from` **{Array}**: The delimiter syntax to use.    \n\n**Example:**\n\n```js\nescapeDelims.escape('<%%= first %><%= last %>', ['<%%', '%>']);\n//=> '(;^__^;) first (;\\^_\\^;)<%= last %>'\n```\n\n## [.unescape](index.js#L80)\n\nUn-escape previously escaped delimiters in the given `str`. Optionally pass the `syntax` to use if they have not already been defined.\n\n* `str` **{String}**: The string with delimiters that need to be escaped.    \n* `to` **{Array}**: The delimiter syntax to use for un-escaping.    \n\n**Example:**\n\n```js\nescapeDelims.unescape('(;^__^;) first (;\\^_\\^;)<%= last %>', ['<%%', '%>']);\n//=> '<%= first %><%= last %>'\n```\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2014 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/jonschlinkert/verb) on November 11, 2014._","publish_time":1410690966149,"_cnpm_publish_time":1410690966149,"dist-tags":{"latest":"0.4.0"}}