{"_id":"jsesc","_rev":"36-7c92524d154c6abd5776167d0a86e408","name":"jsesc","description":"Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.","dist-tags":{"latest":"2.5.1"},"versions":{"0.3.0":{"name":"jsesc","version":"0.3.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"http://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","tool"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{},"devDependencies":{"grunt":"~0.4.1","grunt-shell":"~0.3.1","grunt-template":"~0.2.0","istanbul":"~0.1.42","qunit-clib":"~1.3.0","qunitjs":"~1.11.0","regenerate":"~0.5.2","requirejs":"~2.1.8"},"_id":"jsesc@0.3.0","dist":{"shasum":"1bf5ee63b4539fe2e26d0c1e99c240b97a457972","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-0.3.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.4.0":{"name":"jsesc","version":"0.4.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"http://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","tool"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{},"devDependencies":{"grunt":"~0.4.1","grunt-shell":"~0.3.1","grunt-template":"~0.2.0","istanbul":"~0.1.42","qunit-clib":"~1.3.0","qunitjs":"~1.11.0","regenerate":"~0.5.2","requirejs":"~2.1.8"},"_id":"jsesc@0.4.0","dist":{"shasum":"152d5de628d0d706152a1e7958da24aa5564bff6","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-0.4.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.4.1":{"name":"jsesc","version":"0.4.1","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"http://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","tool"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{},"devDependencies":{"grunt":"~0.4.1","grunt-shell":"~0.3.1","grunt-template":"~0.2.0","istanbul":"~0.1.42","qunit-clib":"~1.3.0","qunitjs":"~1.11.0","regenerate":"~0.5.2","requirejs":"~2.1.8"},"_id":"jsesc@0.4.1","dist":{"shasum":"9bdd6a2e7fe16bed9308effc252c5166e1bac9f1","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-0.4.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.4.2":{"name":"jsesc","version":"0.4.2","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"http://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","tool"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{},"devDependencies":{"grunt":"~0.4.1","grunt-shell":"~0.3.1","grunt-template":"~0.2.0","istanbul":"~0.1.42","qunit-clib":"~1.3.0","qunitjs":"~1.11.0","regenerate":"~0.5.2","requirejs":"~2.1.8"},"_id":"jsesc@0.4.2","dist":{"shasum":"ed2b68ec88e30e1ea57e6f6918c508c5cf41211b","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-0.4.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.4.3":{"name":"jsesc","version":"0.4.3","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"http://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","tool"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{},"devDependencies":{"grunt":"~0.4.1","grunt-shell":"~0.5.0","grunt-template":"~0.2.1","istanbul":"~0.1.44","qunit-clib":"~1.3.0","qunitjs":"~1.11.0","regenerate":"~0.5.4","requirejs":"~2.1.9"},"_id":"jsesc@0.4.3","dist":{"shasum":"a9c7f90afd5a1bf2ee64df6c416dab61672d2ae9","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-0.4.3.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.5.0":{"name":"jsesc","version":"0.5.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"http://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"directories":{"test":"tests"},"scripts":{"test":"node tests/tests.js"},"devDependencies":{"coveralls":"^2.10.0","grunt":"^0.4.5","grunt-shell":"^0.7.0","grunt-template":"^0.2.3","istanbul":"^0.3.0","qunit-extras":"^1.2.0","qunitjs":"~1.11.0","regenerate":"^0.6.2","requirejs":"^2.1.14"},"_id":"jsesc@0.5.0","_shasum":"e7dee66e35d6fc16f710fe91d5cf69f70f08911d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"e7dee66e35d6fc16f710fe91d5cf69f70f08911d","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz"}},"1.0.0":{"name":"jsesc","version":"1.0.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"test":"node tests/tests.js","build":"grunt template"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-shell":"^1.1.2","grunt-template":"^0.2.3","istanbul":"^0.4.2","qunit-extras":"^1.4.5","qunitjs":"~1.11.0","regenerate":"^1.2.1","requirejs":"^2.1.22"},"gitHead":"740510df41cc284c051b2c799523b1cb45896614","_id":"jsesc@1.0.0","_shasum":"280d89802932b49f653a76f94bc5961aa2c2302a","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.2.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"280d89802932b49f653a76f94bc5961aa2c2302a","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/jsesc-1.0.0.tgz_1455887709949_0.5081199647393078"},"directories":{}},"1.1.0":{"name":"jsesc","version":"1.1.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"test":"node tests/tests.js","build":"grunt template"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-shell":"^1.1.2","grunt-template":"^0.2.3","istanbul":"^0.4.2","qunit-extras":"^1.4.5","qunitjs":"~1.11.0","regenerate":"^1.2.1","requirejs":"^2.1.22"},"gitHead":"24455b45733040b864ea19844e94e013b1e32ceb","_id":"jsesc@1.1.0","_shasum":"94dabee9b99e29de73f2b756e8d17040040070d2","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"94dabee9b99e29de73f2b756e8d17040040070d2","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-1.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsesc-1.1.0.tgz_1463750358068_0.5460553385782987"},"directories":{}},"1.2.0":{"name":"jsesc","version":"1.2.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"test":"node tests/tests.js","build":"grunt template"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-shell":"^1.1.2","grunt-template":"^0.2.3","istanbul":"^0.4.2","qunit-extras":"^1.4.5","qunitjs":"~1.11.0","regenerate":"^1.2.1","requirejs":"^2.1.22"},"gitHead":"f358fe9668a07a0118cfca2469f19e52986c7b40","_id":"jsesc@1.2.0","_shasum":"f43b14e9fd7f05e149ba285f3a50cea1b8e896a8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"f43b14e9fd7f05e149ba285f3a50cea1b8e896a8","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsesc-1.2.0.tgz_1463823689906_0.357853488298133"},"directories":{}},"1.2.1":{"name":"jsesc","version":"1.2.1","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"test":"node tests/tests.js","build":"grunt template"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-shell":"^1.1.2","grunt-template":"^0.2.3","istanbul":"^0.4.2","qunit-extras":"^1.4.5","qunitjs":"~1.11.0","regenerate":"^1.2.1","requirejs":"^2.1.22"},"gitHead":"95a7aef13ca0e698acc378de8d204a1180551c63","_id":"jsesc@1.2.1","_shasum":"2c905f923eefcd3d75438f18287aa582527e18b8","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"2c905f923eefcd3d75438f18287aa582527e18b8","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsesc-1.2.1.tgz_1464617342065_0.2549015914555639"},"directories":{}},"1.3.0":{"name":"jsesc","version":"1.3.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"test":"node tests/tests.js","build":"grunt template"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-shell":"^1.1.2","grunt-template":"^0.2.3","istanbul":"^0.4.2","qunit-extras":"^1.4.5","qunitjs":"~1.11.0","regenerate":"^1.2.1","requirejs":"^2.1.22"},"gitHead":"2c43a8a223e297155b2b2ccca344df4d6ee4233c","_id":"jsesc@1.3.0","_shasum":"46c3fec8c1892b12b0833db9bc7622176dbab34b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"46c3fec8c1892b12b0833db9bc7622176dbab34b","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsesc-1.3.0.tgz_1464619777756_0.3163749815430492"},"directories":{}},"2.0.0":{"name":"jsesc","version":"2.0.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"560bdedcb75fc572a089502e4fce84f4df962691","_id":"jsesc@2.0.0","_shasum":"30b740d13321ee4c469afb9ded564763cf59c510","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"30b740d13321ee4c469afb9ded564763cf59c510","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsesc-2.0.0.tgz_1464648069948_0.36701208422891796"},"directories":{}},"2.1.0":{"name":"jsesc","version":"2.1.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"23d911db1570dfaaaa2ab8fb631d2ff13c130dba","_id":"jsesc@2.1.0","_shasum":"62df993ba00ffb169a2a2039137e53cc276f1d50","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"62df993ba00ffb169a2a2039137e53cc276f1d50","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsesc-2.1.0.tgz_1464676330741_0.13891987106762826"},"directories":{}},"2.2.0":{"name":"jsesc","version":"2.2.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"30be7a62d862d8b5b49ffc4424a10c85f0ee6f6d","_id":"jsesc@2.2.0","_shasum":"c35a8613a3806c8ec3bafc0b0e196f020f7aab01","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"c35a8613a3806c8ec3bafc0b0e196f020f7aab01","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jsesc-2.2.0.tgz_1465308016083_0.46306405449286103"},"directories":{}},"2.3.0":{"name":"jsesc","version":"2.3.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"d627c492b6fe58eced159e0aa2cdd2aa0fac09d0","_id":"jsesc@2.3.0","_shasum":"adb0bc258a23f7aed228dd10eb45a1af76205121","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"adb0bc258a23f7aed228dd10eb45a1af76205121","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsesc-2.3.0.tgz_1481368721518_0.002682796912267804"},"directories":{}},"2.4.0":{"name":"jsesc","version":"2.4.0","description":"A JavaScript library for escaping JavaScript strings while generating the shortest possible valid output.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["string","escape","javascript","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"9b680039faa69329f9c73297ab86db3e56cfd5ee","_id":"jsesc@2.4.0","_shasum":"8568d223ff69c0b5e081b4f8edf5a23d978c9867","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"8568d223ff69c0b5e081b4f8edf5a23d978c9867","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsesc-2.4.0.tgz_1482865877799_0.7051079119555652"},"directories":{}},"2.5.0":{"name":"jsesc","version":"2.5.0","description":"Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["buffer","escape","javascript","json","map","set","string","stringify","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"079324382d7cb7aa90e0ec45fb636b22fc45e1c1","_id":"jsesc@2.5.0","_shasum":"ce895de28feb034dcbf55fbeeabbcaeb63d73086","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"ce895de28feb034dcbf55fbeeabbcaeb63d73086","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.5.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jsesc-2.5.0.tgz_1491927398980_0.9198589532170445"},"directories":{}},"2.5.1":{"name":"jsesc","version":"2.5.1","description":"Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.","homepage":"https://mths.be/jsesc","engines":{"node":">=4"},"main":"jsesc.js","bin":{"jsesc":"bin/jsesc"},"man":["man/jsesc.1"],"keywords":["buffer","escape","javascript","json","map","set","string","stringify","tool"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/jsesc.git"},"bugs":{"url":"https://github.com/mathiasbynens/jsesc/issues"},"files":["LICENSE-MIT.txt","jsesc.js","bin/","man/"],"scripts":{"build":"grunt template","coveralls":"istanbul cover --verbose --dir 'coverage' 'tests/tests.js' && coveralls < coverage/lcov.info'","cover":"istanbul cover --report 'html' --verbose --dir 'coverage' 'tests/tests.js'","test":"mocha tests"},"devDependencies":{"coveralls":"^2.11.6","grunt":"^0.4.5","grunt-template":"^0.2.3","istanbul":"^0.4.2","mocha":"*","regenerate":"^1.3.0","requirejs":"^2.1.22"},"gitHead":"0a09aaa3390c6490242488ac5aedc32fad7a5afe","_id":"jsesc@2.5.1","_shasum":"e421a2a8e20d6b0819df28908f782526b96dd1fe","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"e421a2a8e20d6b0819df28908f782526b96dd1fe","tarball":"https://registry.npmjs.org/jsesc/-/jsesc-2.5.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/jsesc-2.5.1.tgz_1493925441686_0.712287989910692"},"directories":{}}},"readme":"# jsesc [![Build status](https://travis-ci.org/mathiasbynens/jsesc.svg?branch=master)](https://travis-ci.org/mathiasbynens/jsesc) [![Code coverage status](https://coveralls.io/repos/mathiasbynens/jsesc/badge.svg)](https://coveralls.io/r/mathiasbynens/jsesc) [![Dependency status](https://gemnasium.com/mathiasbynens/jsesc.svg)](https://gemnasium.com/mathiasbynens/jsesc)\n\nGiven some data, _jsesc_ returns a stringified representation of that data. jsesc is similar to `JSON.stringify()` except:\n\n1. it outputs JavaScript instead of JSON [by default](#json), enabling support for data structures like ES6 maps and sets;\n2. it offers [many options](#api) to customize the output;\n3. its output is ASCII-safe [by default](#minimal), thanks to its use of [escape sequences](https://mathiasbynens.be/notes/javascript-escapes) where needed.\n\nFor any input, jsesc generates the shortest possible valid printable-ASCII-only output. [Here’s an online demo.](https://mothereff.in/js-escapes)\n\njsesc’s output can be used instead of `JSON.stringify`’s to avoid [mojibake](https://en.wikipedia.org/wiki/Mojibake) and other encoding issues, or even to [avoid errors](https://twitter.com/annevk/status/380000829643571200) when passing JSON-formatted data (which may contain U+2028 LINE SEPARATOR, U+2029 PARAGRAPH SEPARATOR, or [lone surrogates](https://esdiscuss.org/topic/code-points-vs-unicode-scalar-values#content-14)) to a JavaScript parser or an UTF-8 encoder.\n\n## Installation\n\nVia [npm](https://www.npmjs.com/):\n\n```bash\nnpm install jsesc\n```\n\nIn [Node.js](https://nodejs.org/):\n\n```js\nconst jsesc = require('jsesc');\n```\n\n## API\n\n### `jsesc(value, options)`\n\nThis function takes a value and returns an escaped version of the value where any characters that are not printable ASCII symbols are escaped using the shortest possible (but valid) [escape sequences for use in JavaScript strings](https://mathiasbynens.be/notes/javascript-escapes). The first supported value type is strings:\n\n```js\njsesc('Ich ♥ Bücher');\n// → 'Ich \\\\u2665 B\\\\xFCcher'\n\njsesc('foo 𝌆 bar');\n// → 'foo \\\\uD834\\\\uDF06 bar'\n```\n\nInstead of a string, the `value` can also be an array, an object, a map, a set, or a buffer. In such cases, `jsesc` returns a stringified version of the value where any characters that are not printable ASCII symbols are escaped in the same way.\n\n```js\n// Escaping an array\njsesc([\n 'Ich ♥ Bücher', 'foo 𝌆 bar'\n]);\n// → '[\\'Ich \\\\u2665 B\\\\xFCcher\\',\\'foo \\\\uD834\\\\uDF06 bar\\']'\n\n// Escaping an object\njsesc({\n 'Ich ♥ Bücher': 'foo 𝌆 bar'\n});\n// → '{\\'Ich \\\\u2665 B\\\\xFCcher\\':\\'foo \\\\uD834\\\\uDF06 bar\\'}'\n```\n\nThe optional `options` argument accepts an object with the following options:\n\n#### `quotes`\n\nThe default value for the `quotes` option is `'single'`. This means that any occurrences of `'` in the input string are escaped as `\\'`, so that the output can be used in a string literal wrapped in single quotes.\n\n```js\njsesc('`Lorem` ipsum \"dolor\" sit \\'amet\\' etc.');\n// → 'Lorem ipsum \"dolor\" sit \\\\\\'amet\\\\\\' etc.'\n\njsesc('`Lorem` ipsum \"dolor\" sit \\'amet\\' etc.', {\n 'quotes': 'single'\n});\n// → '`Lorem` ipsum \"dolor\" sit \\\\\\'amet\\\\\\' etc.'\n// → \"`Lorem` ipsum \\\"dolor\\\" sit \\\\'amet\\\\' etc.\"\n```\n\nIf you want to use the output as part of a string literal wrapped in double quotes, set the `quotes` option to `'double'`.\n\n```js\njsesc('`Lorem` ipsum \"dolor\" sit \\'amet\\' etc.', {\n 'quotes': 'double'\n});\n// → '`Lorem` ipsum \\\\\"dolor\\\\\" sit \\'amet\\' etc.'\n// → \"`Lorem` ipsum \\\\\\\"dolor\\\\\\\" sit 'amet' etc.\"\n```\n\nIf you want to use the output as part of a template literal (i.e. wrapped in backticks), set the `quotes` option to `'backtick'`.\n\n```js\njsesc('`Lorem` ipsum \"dolor\" sit \\'amet\\' etc.', {\n 'quotes': 'backtick'\n});\n// → '\\\\`Lorem\\\\` ipsum \"dolor\" sit \\'amet\\' etc.'\n// → \"\\\\`Lorem\\\\` ipsum \\\"dolor\\\" sit 'amet' etc.\"\n// → `\\\\\\`Lorem\\\\\\` ipsum \"dolor\" sit 'amet' etc.`\n```\n\nThis setting also affects the output for arrays and objects:\n\n```js\njsesc({ 'Ich ♥ Bücher': 'foo 𝌆 bar' }, {\n 'quotes': 'double'\n});\n// → '{\"Ich \\\\u2665 B\\\\xFCcher\":\"foo \\\\uD834\\\\uDF06 bar\"}'\n\njsesc([ 'Ich ♥ Bücher', 'foo 𝌆 bar' ], {\n 'quotes': 'double'\n});\n// → '[\"Ich \\\\u2665 B\\\\xFCcher\",\"foo \\\\uD834\\\\uDF06 bar\"]'\n```\n\n#### `numbers`\n\nThe default value for the `numbers` option is `'decimal'`. This means that any numeric values are represented using decimal integer literals. Other valid options are `binary`, `octal`, and `hexadecimal`, which result in binary integer literals, octal integer literals, and hexadecimal integer literals, respectively.\n\n```js\njsesc(42, {\n 'numbers': 'binary'\n});\n// → '0b101010'\n\njsesc(42, {\n 'numbers': 'octal'\n});\n// → '0o52'\n\njsesc(42, {\n 'numbers': 'decimal'\n});\n// → '42'\n\njsesc(42, {\n 'numbers': 'hexadecimal'\n});\n// → '0x2A'\n```\n\n#### `wrap`\n\nThe `wrap` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, the output is a valid JavaScript string literal wrapped in quotes. The type of quotes can be specified through the `quotes` setting.\n\n```js\njsesc('Lorem ipsum \"dolor\" sit \\'amet\\' etc.', {\n 'quotes': 'single',\n 'wrap': true\n});\n// → '\\'Lorem ipsum \"dolor\" sit \\\\\\'amet\\\\\\' etc.\\''\n// → \"\\'Lorem ipsum \\\"dolor\\\" sit \\\\\\'amet\\\\\\' etc.\\'\"\n\njsesc('Lorem ipsum \"dolor\" sit \\'amet\\' etc.', {\n 'quotes': 'double',\n 'wrap': true\n});\n// → '\"Lorem ipsum \\\\\"dolor\\\\\" sit \\'amet\\' etc.\"'\n// → \"\\\"Lorem ipsum \\\\\\\"dolor\\\\\\\" sit \\'amet\\' etc.\\\"\"\n```\n\n#### `es6`\n\nThe `es6` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, any astral Unicode symbols in the input are escaped using [ECMAScript 6 Unicode code point escape sequences](https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point) instead of using separate escape sequences for each surrogate half. If backwards compatibility with ES5 environments is a concern, don’t enable this setting. If the `json` setting is enabled, the value for the `es6` setting is ignored (as if it was `false`).\n\n```js\n// By default, the `es6` option is disabled:\njsesc('foo 𝌆 bar 💩 baz');\n// → 'foo \\\\uD834\\\\uDF06 bar \\\\uD83D\\\\uDCA9 baz'\n\n// To explicitly disable it:\njsesc('foo 𝌆 bar 💩 baz', {\n 'es6': false\n});\n// → 'foo \\\\uD834\\\\uDF06 bar \\\\uD83D\\\\uDCA9 baz'\n\n// To enable it:\njsesc('foo 𝌆 bar 💩 baz', {\n 'es6': true\n});\n// → 'foo \\\\u{1D306} bar \\\\u{1F4A9} baz'\n```\n\n#### `escapeEverything`\n\nThe `escapeEverything` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, all the symbols in the output are escaped — even printable ASCII symbols.\n\n```js\njsesc('lolwat\"foo\\'bar', {\n 'escapeEverything': true\n});\n// → '\\\\x6C\\\\x6F\\\\x6C\\\\x77\\\\x61\\\\x74\\\\\"\\\\x66\\\\x6F\\\\x6F\\\\\\'\\\\x62\\\\x61\\\\x72'\n// → \"\\\\x6C\\\\x6F\\\\x6C\\\\x77\\\\x61\\\\x74\\\\\\\"\\\\x66\\\\x6F\\\\x6F\\\\'\\\\x62\\\\x61\\\\x72\"\n```\n\nThis setting also affects the output for string literals within arrays and objects.\n\n#### `minimal`\n\nThe `minimal` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, only a limited set of symbols in the output are escaped:\n\n* U+0000 `\\0`\n* U+0008 `\\b`\n* U+0009 `\\t`\n* U+000A `\\n`\n* U+000C `\\f`\n* U+000D `\\r`\n* U+005C `\\\\`\n* U+2028 `\\u2028`\n* U+2029 `\\u2029`\n* whatever symbol is being used for wrapping string literals (based on [the `quotes` option](#quotes))\n\nNote: with this option enabled, jsesc output is no longer guaranteed to be ASCII-safe.\n\n```js\njsesc('foo\\u2029bar\\nbaz©qux𝌆flops', {\n 'minimal': false\n});\n// → 'foo\\\\u2029bar\\\\nbaz©qux𝌆flops'\n```\n\n#### `isScriptContext`\n\nThe `isScriptContext` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, occurrences of [`` or `