{"_id":"esformatter-quotes","_rev":"147905","name":"esformatter-quotes","description":"esformatter plugin: enforces coding style that string literals are delimited with single or double quotes.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"time":{"modified":"2021-06-03T11:30:44.000Z","created":"2014-06-21T16:27:30.456Z","1.1.0":"2016-06-05T07:42:22.508Z","1.0.3":"2015-07-29T14:39:21.650Z","1.0.2":"2015-06-09T04:49:27.320Z","1.0.1":"2015-03-24T18:46:03.606Z","1.0.0":"2014-06-21T16:27:30.456Z"},"users":{"mpcjazz":true,"princetoad":true,"logol":true},"author":{"name":"Miller Medeiros","url":"http://blog.millermedeiros.com"},"repository":{"type":"git","url":"git+https://github.com/millermedeiros/esformatter-quotes.git"},"versions":{"1.1.0":{"name":"esformatter-quotes","version":"1.1.0","description":"esformatter plugin: enforces coding style that string literals are delimited with single or double quotes.","main":"index.js","scripts":{"test":"mocha --ui bdd --reporter spec test"},"repository":{"type":"git","url":"git+https://github.com/millermedeiros/esformatter-quotes.git"},"keywords":["esformatter","esformatter-plugin","string","quotes","AST"],"author":{"name":"Miller Medeiros","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/esformatter-quotes/issues"},"homepage":"https://github.com/millermedeiros/esformatter-quotes","devDependencies":{"mocha":"https://github.com/millermedeiros/mocha/tarball/latest","chai":"^1.4","esformatter":"^0.3.0"},"gitHead":"93f1adc297cc74cb6dff5b7db0cecc322413afd6","_id":"esformatter-quotes@1.1.0","_shasum":"e22c6c445c7f306041d81c9b9e51fca6cbfaca82","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"dist":{"shasum":"e22c6c445c7f306041d81c9b9e51fca6cbfaca82","size":4341,"noattachment":false,"key":"/esformatter-quotes/-/esformatter-quotes-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/esformatter-quotes/download/esformatter-quotes-1.1.0.tgz"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/esformatter-quotes-1.1.0.tgz_1465112539789_0.49227641010656953"},"directories":{},"publish_time":1465112542508,"_cnpm_publish_time":1465112542508,"_hasShrinkwrap":false},"1.0.3":{"name":"esformatter-quotes","version":"1.0.3","description":"esformatter plugin: enforces coding style that string literals are delimited with single or double quotes.","main":"index.js","scripts":{"test":"mocha --ui bdd --reporter spec test"},"repository":{"type":"git","url":"https://github.com/millermedeiros/esformatter-quotes.git"},"keywords":["esformatter","esformatter-plugin","string","quotes","AST"],"author":{"name":"Miller Medeiros","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/esformatter-quotes/issues"},"homepage":"https://github.com/millermedeiros/esformatter-quotes","devDependencies":{"mocha":"https://github.com/millermedeiros/mocha/tarball/latest","chai":"^1.4","esformatter":"^0.3.0"},"gitHead":"71075378cbcc1c72a2e1a968fb3735b7e01f9c2f","_id":"esformatter-quotes@1.0.3","_shasum":"0740afe46df407c8e3de179aa9928db3d859aa20","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.0","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"0740afe46df407c8e3de179aa9928db3d859aa20","size":3308,"noattachment":false,"key":"/esformatter-quotes/-/esformatter-quotes-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/esformatter-quotes/download/esformatter-quotes-1.0.3.tgz"},"directories":{},"publish_time":1438180761650,"_cnpm_publish_time":1438180761650,"_hasShrinkwrap":false},"1.0.2":{"name":"esformatter-quotes","version":"1.0.2","description":"esformatter plugin: enforces coding style that string literals are delimited with single or double quotes.","main":"index.js","scripts":{"test":"mocha --ui bdd --reporter spec test"},"repository":{"type":"git","url":"git+https://github.com/millermedeiros/esformatter-quotes.git"},"keywords":["esformatter","esformatter-plugin","string","quotes","AST"],"author":{"name":"Miller Medeiros","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/esformatter-quotes/issues"},"homepage":"https://github.com/millermedeiros/esformatter-quotes","devDependencies":{"mocha":"https://github.com/millermedeiros/mocha/tarball/latest","chai":"^1.4","esformatter":"^0.3.0"},"gitHead":"7174dfa2086f47c59e0d477f420fb9586837c726","_id":"esformatter-quotes@1.0.2","_shasum":"817ada0a4ec1222d3c528659b1002b9435149bc5","_from":".","_npmVersion":"2.11.0","_nodeVersion":"0.10.30","_npmUser":{"name":"twolfson","email":"todd@twolfson.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"817ada0a4ec1222d3c528659b1002b9435149bc5","size":2831,"noattachment":false,"key":"/esformatter-quotes/-/esformatter-quotes-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/esformatter-quotes/download/esformatter-quotes-1.0.2.tgz"},"directories":{},"publish_time":1433825367320,"_cnpm_publish_time":1433825367320,"_hasShrinkwrap":false},"1.0.1":{"name":"esformatter-quotes","version":"1.0.1","description":"esformatter plugin: enforces coding style that string literals are delimited with single or double quotes.","main":"index.js","scripts":{"test":"mocha --ui bdd --reporter spec test"},"repository":{"type":"git","url":"https://github.com/millermedeiros/esformatter-quotes.git"},"keywords":["esformatter","string","quotes","AST"],"author":{"name":"Miller Medeiros","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/esformatter-quotes/issues"},"homepage":"https://github.com/millermedeiros/esformatter-quotes","devDependencies":{"mocha":"https://github.com/millermedeiros/mocha/tarball/latest","chai":"^1.4","esformatter":"^0.3.0"},"gitHead":"482b262c46d0eec56624aa38f45a2e2bf767daf7","_id":"esformatter-quotes@1.0.1","_shasum":"ecbf4bdde4672792f61e7bea62e78b272b54315c","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"dist":{"shasum":"ecbf4bdde4672792f61e7bea62e78b272b54315c","size":2828,"noattachment":false,"key":"/esformatter-quotes/-/esformatter-quotes-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/esformatter-quotes/download/esformatter-quotes-1.0.1.tgz"},"directories":{},"publish_time":1427222763606,"_cnpm_publish_time":1427222763606,"_hasShrinkwrap":false},"1.0.0":{"name":"esformatter-quotes","version":"1.0.0","description":"esformatter plugin: enforces coding style that string literals are delimited with single or double quotes.","main":"index.js","scripts":{"test":"mocha --ui bdd --reporter spec test"},"repository":{"type":"git","url":"https://github.com/millermedeiros/esformatter-quotes.git"},"keywords":["esformatter","string","quotes","AST"],"author":{"name":"Miller Medeiros","url":"http://blog.millermedeiros.com"},"license":"MIT","bugs":{"url":"https://github.com/millermedeiros/esformatter-quotes/issues"},"homepage":"https://github.com/millermedeiros/esformatter-quotes","devDependencies":{"mocha":"https://github.com/millermedeiros/mocha/tarball/latest","chai":"^1.4","esformatter":"^0.3.0"},"_id":"esformatter-quotes@1.0.0","dist":{"shasum":"0067c4692784c9e66e94d14d104809c7f35dc205","size":2490,"noattachment":false,"key":"/esformatter-quotes/-/esformatter-quotes-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/esformatter-quotes/download/esformatter-quotes-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"millermedeiros","email":"miller@millermedeiros.com"},"maintainers":[{"name":"twolfson","email":"todd@twolfson.com"}],"directories":{},"publish_time":1403368050456,"_cnpm_publish_time":1403368050456,"_hasShrinkwrap":false}},"readme":"# esformatter-quotes\n\n[esformatter](https://github.com/millermedeiros/esformatter) plugin for\nsingle/double quotes normalization.\n\n\n## Usage\n\ninstall it:\n\n```sh\nnpm install esformatter-quotes\n```\n\nand add to your esformatter config file:\n\n```json\n{\n  \"plugins\": [\n    \"esformatter-quotes\"\n  ],\n  \"quotes\": {\n    \"type\": \"single\",\n    \"avoidEscape\": false\n  }\n}\n```\n\n\n## Options\n\n  - **type:String**\n    - if code should use \"single\" or \"double\" quotes.\n  - **avoidEscape:Boolean**\n    - `true` if you want to avoid escaping quotes when possible.\n\n```js\n// register plugin\nesformatter.register(require('esformatter-quotes'));\n// pass options as second argument\nvar output = esformatter.format(str, {\n  \"quotes\": {\n    \"type\": \"single\",\n    \"avoidEscape\": false\n  }\n});\n```\n\n## Examples\n\nGiven this input program:\n\n```js\nvar singleQuote = 'single';\nvar doubleQuote = \"double\";\nvar avoidSingle = 'single \"quote\"';\nvar avoidDouble = \"double 'quote'\";\nvar lorem = \"ipsum \\\"dolor\\\" sit 'amet'\";\nvar maecennas = 'ipsum \\'dolor\\' sit \"amet\"';\n```\n\nWill you get the following output based on the config options:\n\n\n### {type: 'single'}\n\n```js\nvar singleQuote = 'single';\nvar doubleQuote = 'double';\nvar avoidSingle = 'single \"quote\"';\nvar avoidDouble = 'double \\'quote\\'';\nvar lorem = 'ipsum \"dolor\" sit \\'amet\\'';\nvar maecennas = 'ipsum \\'dolor\\' sit \"amet\"';\n```\n\n### {type: 'single', avoidEscape: true}\n\n```js\nvar singleQuote = 'single';\nvar doubleQuote = 'double';\nvar avoidSingle = 'single \"quote\"';\nvar avoidDouble = \"double 'quote'\";\nvar lorem = 'ipsum \"dolor\" sit \\'amet\\'';\nvar maecennas = 'ipsum \\'dolor\\' sit \"amet\"';\n```\n\n### {type: 'double'}\n\n```js\nvar singleQuote = \"single\";\nvar doubleQuote = \"double\";\nvar avoidSingle = \"single \\\"quote\\\"\";\nvar avoidDouble = \"double 'quote'\";\nvar lorem = \"ipsum \\\"dolor\\\" sit 'amet'\";\nvar maecennas = \"ipsum 'dolor' sit \\\"amet\\\"\";\n```\n\n### {type: 'double', avoidEscape: true}\n\n```js\nvar singleQuote = \"single\";\nvar doubleQuote = \"double\";\nvar avoidSingle = 'single \"quote\"';\nvar avoidDouble = \"double 'quote'\";\nvar lorem = \"ipsum \\\"dolor\\\" sit 'amet'\";\nvar maecennas = \"ipsum 'dolor' sit \\\"amet\\\"\";\n```\n\n\n## License\n\nReleased under the [MIT License](http://opensource.org/licenses/MIT).\n\n","_attachments":{},"homepage":"https://github.com/millermedeiros/esformatter-quotes","bugs":{"url":"https://github.com/millermedeiros/esformatter-quotes/issues"},"license":"MIT"}