{"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":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Wru0bY9XSICPNsy7KwbAZww9SLkoYjP9GtJkmnQOEqOy9U13KA0OJXoti7FaVMsiQ0mQfh916/xoByM6PqdW4g==","shasum":"585fb6be77be8fc2ff04cc73b357021d7d9d7f22","tarball":"http://registry-npm.ywwl.com/escape-string-applescript/download/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"}],"size":1674,"noattachment":false,"key":"/escape-string-applescript/-/escape-string-applescript-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/escape-string-applescript_3.0.0_1618465405283_0.11530147218922848"},"_hasShrinkwrap":false,"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","publish_time":1618465405433,"_cnpm_publish_time":1618465405433,"dist-tags":{"latest":"3.0.0"}}