{"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":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"760bca838668e408fe5ee52ce42caf7cb46c5273","tarball":"http://registry-npm.ywwl.com/escape-string-applescript/download/escape-string-applescript-2.0.0.tgz","integrity":"sha512-Z7OsRJUi5+OHT89RRJlkS8cKxIh9AyPmgtEevsSQFCx5WLIiS3hy/HRiiQZzYQMsn6MWyCDZ5elBFa/9dxT0BA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4u+2HbgPEful1ENLFMAy3lt4bZK4FTcODPPaAdmDzAgIhAPG9awI2CpbE+Qx5JDYPljBDpSAmIR6jb9RDNCbEO9f1"}],"size":1697,"noattachment":false,"key":"/escape-string-applescript/-/escape-string-applescript-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","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":{},"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":1484306875524,"_cnpm_publish_time":1484306875524,"dist-tags":{"latest":"3.0.0"}}