{"_id":"shellsubstitute","_rev":"162673","name":"shellsubstitute","description":"Like shell substitution but for your JS.","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"refractalize","email":"timmacfarlane@gmail.com"}],"time":{"modified":"2021-06-03T11:42:09.000Z","created":"2014-10-20T12:49:55.775Z","1.2.0":"2016-10-18T09:02:17.845Z","1.1.0":"2014-10-20T13:13:23.165Z","1.0.0":"2014-10-20T12:49:55.775Z"},"users":{},"author":{"name":"Tim Macfarlane","email":"timmacfarlane@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/featurist/shellsubstitute.git"},"versions":{"1.2.0":{"name":"shellsubstitute","version":"1.2.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Tim Macfarlane","email":"timmacfarlane@gmail.com"},"license":"ISC","dependencies":{},"devDependencies":{"chai":"^1.9.2","mocha":"^1.21.5"},"repository":{"type":"git","url":"git+https://github.com/featurist/shellsubstitute.git"},"keywords":["shell","environment","variables","env","substitute","replace"],"bugs":{"url":"https://github.com/featurist/shellsubstitute/issues"},"homepage":"https://github.com/featurist/shellsubstitute","gitHead":"dd91940916095071920a6e6a337eff6fbf5853d2","description":"Like shell substitution but for your JS.","_id":"shellsubstitute@1.2.0","_shasum":"e4f702a50c518b0f6fe98451890d705af29b6b70","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"refractalize","email":"timmacfarlane@gmail.com"},"maintainers":[{"name":"refractalize","email":"timmacfarlane@gmail.com"}],"dist":{"shasum":"e4f702a50c518b0f6fe98451890d705af29b6b70","size":1497,"noattachment":false,"key":"/shellsubstitute/-/shellsubstitute-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shellsubstitute/download/shellsubstitute-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/shellsubstitute-1.2.0.tgz_1476781335722_0.5128898613620549"},"publish_time":1476781337845,"_cnpm_publish_time":1476781337845,"_hasShrinkwrap":false},"1.1.0":{"name":"shellsubstitute","version":"1.1.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Tim Macfarlane","email":"timmacfarlane@gmail.com"},"license":"ISC","dependencies":{},"devDependencies":{"chai":"^1.9.2","mocha":"^1.21.5"},"repository":{"type":"git","url":"https://github.com/featurist/shellsubstitute.git"},"keywords":["shell","environment","variables","env","substitute","replace"],"bugs":{"url":"https://github.com/featurist/shellsubstitute/issues"},"homepage":"https://github.com/featurist/shellsubstitute","gitHead":"a62e524ab2ffdb3754dff5ab51e4b11899c52ee3","description":"Like shell substitution but for your JS.","_id":"shellsubstitute@1.1.0","_shasum":"970b2459c5af53deb34284f15a4af95f50911c69","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"refractalize","email":"timmacfarlane@gmail.com"},"maintainers":[{"name":"refractalize","email":"timmacfarlane@gmail.com"}],"dist":{"shasum":"970b2459c5af53deb34284f15a4af95f50911c69","size":1210,"noattachment":false,"key":"/shellsubstitute/-/shellsubstitute-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shellsubstitute/download/shellsubstitute-1.1.0.tgz"},"publish_time":1413810803165,"_cnpm_publish_time":1413810803165,"_hasShrinkwrap":false},"1.0.0":{"name":"shellsubstitute","version":"1.0.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"Tim Macfarlane","email":"timmacfarlane@gmail.com"},"license":"ISC","dependencies":{},"devDependencies":{"chai":"^1.9.2","mocha":"^1.21.5"},"repository":{"type":"git","url":"https://github.com/featurist/shellsubstitute.git"},"keywords":["shell","environment","variables","env","substitute","replace"],"bugs":{"url":"https://github.com/featurist/shellsubstitute/issues"},"homepage":"https://github.com/featurist/shellsubstitute","gitHead":"6afa59f92705820d9f86080932125bbb6abbf680","_id":"shellsubstitute@1.0.0","_shasum":"e232ff331f0e0aea96fb3a17012789201f2fdb4d","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"refractalize","email":"timmacfarlane@gmail.com"},"maintainers":[{"name":"refractalize","email":"timmacfarlane@gmail.com"}],"dist":{"shasum":"e232ff331f0e0aea96fb3a17012789201f2fdb4d","size":935,"noattachment":false,"key":"/shellsubstitute/-/shellsubstitute-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shellsubstitute/download/shellsubstitute-1.0.0.tgz"},"publish_time":1413809395775,"_cnpm_publish_time":1413809395775,"_hasShrinkwrap":false}},"readme":"# Shell Substitute [![npm version](https://img.shields.io/npm/v/shellsubstitute.svg)](https://www.npmjs.com/package/shellsubstitute) [![npm](https://img.shields.io/npm/dm/shellsubstitute.svg)](https://www.npmjs.com/package/shellsubstitute) [![Build Status](https://travis-ci.org/featurist/shellsubstitute.svg?branch=master)](https://travis-ci.org/featurist/shellsubstitute)\n\nLike shell substitution but for your JS.\n\n    var substitute = require('shellsubstitute');\n\n    substitute('Hi $USER', {USER: 'Josh'}) // Hi Josh\n    substitute('Hi ${USER}', {USER: 'Josh'}) // Hi Josh\n\n    // escape\n    substitute('Hi \\\\$USER', {USER: 'Josh'}) // Hi $USER\n    substitute('Hi \\\\${USER}', {USER: 'Josh'}) // Hi ${USER}\n\n    // escape escapes\n    substitute('Hi \\\\\\\\$USER', {USER: 'Josh'}) // Hi \\$USER\n    substitute('Hi \\\\\\\\${USER}', {USER: 'Josh'}) // Hi \\${USER}\n\n## Syntax\n\nVariables are `$` followed by `_` or numbers `0-9` or upper or lower-case characters `a-z`.\n\nVariables can be wrapped in braces `{...}`. Useful to delimit the variable from following text.\n","_attachments":{},"homepage":"https://github.com/featurist/shellsubstitute","bugs":{"url":"https://github.com/featurist/shellsubstitute/issues"},"license":"ISC"}