{"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":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"c2b4230e5b8e36bb5ba918e6298aae3248dfdbba","tarball":"http://registry-npm.ywwl.com/escape-string-applescript/download/escape-string-applescript-0.1.1.tgz","integrity":"sha512-SmAVJsaulNO9ifCmQJ8/noSjFSLIxJt+R1B41yWHMY1BIkjMKp5TvbtX7urPqcngIvAMEPtKxV1aVigY38JKSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDddJ9OLh1MV9TeLt5qqyngflU6eYMRCVHLiGSENu++gAiBdSVJ8GGCtLhyVoqo+RO8RtT4H24xCmEv1DCZDJ/gk0g=="}],"size":989,"noattachment":false,"key":"/escape-string-applescript/-/escape-string-applescript-0.1.1.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":1400277114490,"_cnpm_publish_time":1400277114490,"dist-tags":{"latest":"3.0.0"}}