{"name":"escape-delims","description":"Escape delimiters in templates. Used with Lo-Dash and underscore templates but could be used with other template engines as well.","version":"0.2.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":["templates","lodash","lo-dash","underscore","demlim","demlims","demlimiter","demlimiters"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"chai":"~1.9.1","lodash":"^2.4.1","mocha":"*","should":"^4.0.4","verb":"~0.2.6"},"dependencies":{"delims":"^0.3.0","frep":"^0.2.1"},"_id":"escape-delims@0.2.0","_shasum":"c1cd249a5077c17806ddecab7c6a5f8c6960a3aa","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c1cd249a5077c17806ddecab7c6a5f8c6960a3aa","tarball":"http://registry-npm.ywwl.com/escape-delims/download/escape-delims-0.2.0.tgz","integrity":"sha512-292u1Y/2xBXhA6gAUXa1U6LsMICz+NP/d7tljWqaaKQEtzS3kjtio/XEY7sZyK7LS+53b7a3nkY3ZSXTCxjCHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClEYqe97djpC2USHeUp+mQvG2/ML4+Fbc47diLRX1uMgIhAIQWIymPFfbNr29fhKERiz3oF6qDSjDPHM8gpnhFdP04"}],"size":3259,"noattachment":false,"key":"/escape-delims/-/escape-delims-0.2.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":1407729935192,"_cnpm_publish_time":1407729935192,"dist-tags":{"latest":"0.4.0"}}