{"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"keywords":["escape","string","applescript","osascript","quote","quotes","backslash"],"dist-tags":{"latest":"3.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"description":"Escape a string for use in AppleScript","readme":"# escape-string-applescript\n\n> Escape a string for use in AppleScript\n\nAccording to the AppleScript [docs](https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-DontLinkElementID_57), `\\` and `\"` have special meaning and should be escaped.\n\n## Install\n\n```\n$ npm install escape-string-applescript\n```\n\n## Usage\n\n```js\nimport {execFile} from 'child_process';\nimport escapeStringAppleScript from 'escape-string-applescript';\n\nconst string = escapeStringAppleScript('\"i like unicorns\"');\n//=> '\\\"i like unicorns\\\"'\n\nconst script = `set unicornMessage to \"${string}\"`;\n\nexecFile('osascript', ['-e', script]);\n```\n\n## Related\n\n- [run-applescript](https://github.com/sindresorhus/run-applescript) - Run AppleScript and get the result\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-applescript.git"},"bugs":{"url":"https://github.com/sindresorhus/escape-string-applescript/issues"},"license":"MIT","versions":{"0.1.0":{"name":"escape-string-applescript","version":"0.1.0","description":"Escape a string for use in AppleScript","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/escape-string-applescript"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["escape","string","str","applescript","osascript","quote","quotes","backslash"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/escape-string-applescript/issues"},"homepage":"https://github.com/sindresorhus/escape-string-applescript","_id":"escape-string-applescript@0.1.0","_shasum":"861190ae8948081d7a905fb82b076bd6776827a4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"861190ae8948081d7a905fb82b076bd6776827a4","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/escape-string-applescript/-/escape-string-applescript-0.1.0.tgz","integrity":"sha512-rQImC9pmFWUUl+OHB427AHKy5B7h05tzKb1F1/7AZDx1Udo6BCKNGARnLH8z2Kf27WV3N/KL4pXdC0yWjth/ZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUSy8+0ZTLWICBtRLKhxQn9Z43PSZE254exIgzFUj4yQIgYu13duvGG+ZqmPtwHbjFxoJSH7J8Czb5xyU/eqJtQOE="}]},"directories":{}},"0.1.1":{"name":"escape-string-applescript","version":"0.1.1","description":"Escape a string for use in AppleScript","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/escape-string-applescript"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["escape","string","str","applescript","osascript","quote","quotes","backslash"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/escape-string-applescript/issues"},"homepage":"https://github.com/sindresorhus/escape-string-applescript","_id":"escape-string-applescript@0.1.1","_shasum":"c2b4230e5b8e36bb5ba918e6298aae3248dfdbba","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"c2b4230e5b8e36bb5ba918e6298aae3248dfdbba","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/escape-string-applescript/-/escape-string-applescript-0.1.1.tgz","integrity":"sha512-SmAVJsaulNO9ifCmQJ8/noSjFSLIxJt+R1B41yWHMY1BIkjMKp5TvbtX7urPqcngIvAMEPtKxV1aVigY38JKSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDddJ9OLh1MV9TeLt5qqyngflU6eYMRCVHLiGSENu++gAiBdSVJ8GGCtLhyVoqo+RO8RtT4H24xCmEv1DCZDJ/gk0g=="}]},"directories":{}},"1.0.0":{"name":"escape-string-applescript","version":"1.0.0","description":"Escape a string for use in AppleScript","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/escape-string-applescript"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["escape","string","str","applescript","osascript","quote","quotes","backslash"],"devDependencies":{"ava":"0.0.3"},"gitHead":"e8e7f575ecbe6cc862f9b46e07049cffaba367a1","bugs":{"url":"https://github.com/sindresorhus/escape-string-applescript/issues"},"homepage":"https://github.com/sindresorhus/escape-string-applescript","_id":"escape-string-applescript@1.0.0","_shasum":"6f1c2294245d82c63bc03338dc19a94aa8428892","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"6f1c2294245d82c63bc03338dc19a94aa8428892","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/escape-string-applescript/-/escape-string-applescript-1.0.0.tgz","integrity":"sha512-4/hFwoYaC6TkpDn9A3pTC52zQPArFeXuIfhUtCGYdauTzXVP9H3BDr3oO/QzQehMpLDC7srvYgfwvImPFGfvBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMJsK3/giu2hWGFeOBRoJCEL7JeqRByP89hSBF3/vHuAiEAmeIL4+i4L0Fhgs0AGLXfU/wj7c69TWfT5OR6U4WG6E8="}]},"directories":{}},"2.0.0":{"name":"escape-string-applescript","version":"2.0.0","description":"Escape a string for use in AppleScript","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-applescript.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["escape","string","str","applescript","osascript","quote","quotes","backslash"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"d6e426ba2c8aca70a2ea111c3919667b0e86fdfb","bugs":{"url":"https://github.com/sindresorhus/escape-string-applescript/issues"},"homepage":"https://github.com/sindresorhus/escape-string-applescript#readme","_id":"escape-string-applescript@2.0.0","_shasum":"760bca838668e408fe5ee52ce42caf7cb46c5273","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"760bca838668e408fe5ee52ce42caf7cb46c5273","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/escape-string-applescript/-/escape-string-applescript-2.0.0.tgz","integrity":"sha512-Z7OsRJUi5+OHT89RRJlkS8cKxIh9AyPmgtEevsSQFCx5WLIiS3hy/HRiiQZzYQMsn6MWyCDZ5elBFa/9dxT0BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4u+2HbgPEful1ENLFMAy3lt4bZK4FTcODPPaAdmDzAgIhAPG9awI2CpbE+Qx5JDYPljBDpSAmIR6jb9RDNCbEO9f1"}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/escape-string-applescript-2.0.0.tgz_1484306875278_0.013220529304817319"},"directories":{}},"3.0.0":{"name":"escape-string-applescript","version":"3.0.0","description":"Escape a string for use in AppleScript","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-applescript.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["escape","string","applescript","osascript","quote","quotes","backslash"],"devDependencies":{"ava":"^3.15.0","xo":"^0.38.2"},"gitHead":"50c5a034909f2ee049d31eef40f70d32ed4588cf","bugs":{"url":"https://github.com/sindresorhus/escape-string-applescript/issues"},"homepage":"https://github.com/sindresorhus/escape-string-applescript#readme","_id":"escape-string-applescript@3.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Wru0bY9XSICPNsy7KwbAZww9SLkoYjP9GtJkmnQOEqOy9U13KA0OJXoti7FaVMsiQ0mQfh916/xoByM6PqdW4g==","shasum":"585fb6be77be8fc2ff04cc73b357021d7d9d7f22","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/escape-string-applescript/-/escape-string-applescript-3.0.0.tgz","fileCount":4,"unpackedSize":2854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgd9J9CRA9TVsSAnZWagAAU/AP/jvf4mQtRYFVawIN5i9H\nDE1OeQvTcJQjcheFN6m/tI1WLw/zDzmNd6NUg574UdBW6+bBEVMDRr69l4Xg\n8GEHYClIbj1loCE7nVXD/Iw2X6ZFlBA2juxxfFCZrlk1NGJXH2/28dqOk7Kg\nKx1XgOYck7IvFO5BbYwWVbpB7Lt57JSN3xwUmSRzb6WC9Z/SMQ3HbFQbU5JG\nmLJRD9OczHfuG/jNPOaLDr6Leh/qCQxbyjmmVZdJa0rRuQB8jijEiFJJx07E\nPTa0+uTY/aDn5JXuShLzP7zwBSHanGbB9vdxFTn9Ar3Ck6uAZL4bPTZFx0R5\n+psj1V5qoDONtJ0zG82792OAln5F2tUEP1OdatxoDbDK5KTbnGoDSt4q5p9z\nxruOnR6sWYUdmUqk8eR1SI/OZibUJ3fOpteKtp4KIqd6tfKXrN+BqiSn/lqj\n0nQjusnnvVr3Lss1OyC+Zuq/zxmjPq1lKZLsOkAilOFuYI+H1TEEsCdOi7Do\n0/u15hULU5e5urVbizDb5c6gokHtNkqhSoIy+uV7Ov62ET+aRslvRSDYGzSR\nV3vLdaqvZFA2CMV0mRtnDGVK64e2hb/MVxlvwaI90USzewfiTvLFwvTslgvb\nxdi2Vqx1jtAdJQk8IbhbMh9bbPk+pIndFx0CyY1EcLutIZ3aJQsqgbOphIsR\nz/oN\r\n=56Cq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDy7PEI1sD5MZP2qw3olO8X7yylrK61GdznCj7t8U6MhgIhALzoSo3lNmjFGiL4JR2GwlktZUQTkzF6SHB/vVg+2sON"}]},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/escape-string-applescript_3.0.0_1618465405283_0.11530147218922848"},"_hasShrinkwrap":false}},"name":"escape-string-applescript","time":{"modified":"2022-06-17T17:22:34.535Z","created":"2014-05-14T23:07:44.318Z","0.1.0":"2014-05-14T23:07:44.318Z","0.1.1":"2014-05-16T21:51:54.490Z","1.0.0":"2014-08-06T13:57:02.989Z","2.0.0":"2017-01-13T11:27:55.524Z","3.0.0":"2021-04-15T05:43:25.433Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/escape-string-applescript#readme"}