{"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":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"6f1c2294245d82c63bc03338dc19a94aa8428892","tarball":"http://registry-npm.ywwl.com/escape-string-applescript/download/escape-string-applescript-1.0.0.tgz","integrity":"sha512-4/hFwoYaC6TkpDn9A3pTC52zQPArFeXuIfhUtCGYdauTzXVP9H3BDr3oO/QzQehMpLDC7srvYgfwvImPFGfvBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMJsK3/giu2hWGFeOBRoJCEL7JeqRByP89hSBF3/vHuAiEAmeIL4+i4L0Fhgs0AGLXfU/wj7c69TWfT5OR6U4WG6E8="}],"size":988,"noattachment":false,"key":"/escape-string-applescript/-/escape-string-applescript-1.0.0.tgz"},"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":1407333422989,"_cnpm_publish_time":1407333422989,"dist-tags":{"latest":"3.0.0"}}