{"_id":"template-copy","_rev":"5-542b7b45103820d22c4ba39d2ee5cc10","name":"template-copy","description":"Tiny scaffolding engine","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.0":{"name":"template-copy","version":"1.1.0","description":"Tiny scaffolding engine","main":"index.js","scripts":{"test":"mocha -R spec"},"devDependencies":{"babel-cli":"^6.9.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","bake-cli":"^0.1.6","eslint":"^2.10.2","eslint-config-standard":"^5.3.1","eslint-plugin-promise":"^1.1.0","eslint-plugin-standard":"^1.3.2","mocha":"^2.5.2","standard-version":"^2.2.1","watchd":"github:mklabs/watchd"},"license":"MIT","dependencies":{"chalk":"^1.1.3","debug":"^2.2.0","deep-assign":"^2.0.0","glob":"^7.0.3","lodash.template":"^4.2.5","log-symbols":"^1.0.2","minimist":"^1.2.0","mkdirp":"^0.5.1","through2":"^2.0.1"},"keywords":["scaffold","template","skeleton","generator"],"gitHead":"e575e51cbc5386cf323ad84705b916218968999a","_id":"template-copy@1.1.0","_shasum":"6b3c34816c2942d39f2abfc72fb79f007276290b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mklabs","email":"daniel.mickael@gmail.com"},"dist":{"shasum":"6b3c34816c2942d39f2abfc72fb79f007276290b","tarball":"https://registry.npmjs.org/template-copy/-/template-copy-1.1.0.tgz","integrity":"sha512-um7HLTyXsbWeT9ZvjXqWCyFZltlVcmRqz4Iwjgi6jDcm1mblbftcoNX0rz7xWCOuzhawpWKzrL2qBwwJSg/IfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqGwkXCL1x11s7S7pvc5/R2px0B+G20eo8ID5Y3My8gAiBxyFnkuy0sY8SFR9G+k04VLZabQ2r3mRhSrlA55cNSsQ=="}]},"maintainers":[{"name":"mklabs","email":"daniel.mickael@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/template-copy-1.1.0.tgz_1464311642182_0.1832406842149794"}},"1.1.1":{"name":"template-copy","version":"1.1.1","description":"Tiny scaffolding engine","main":"index.js","scripts":{"test":"mocha -R spec"},"devDependencies":{"babel-cli":"^6.9.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","bake-cli":"^0.1.6","eslint":"^2.10.2","eslint-config-standard":"^5.3.1","eslint-plugin-promise":"^1.1.0","eslint-plugin-standard":"^1.3.2","mocha":"^2.5.2","standard-version":"^2.2.1","watchd":"github:mklabs/watchd"},"license":"MIT","dependencies":{"chalk":"^1.1.3","debug":"^2.2.0","deep-assign":"^2.0.0","glob":"^7.0.3","lodash.template":"^4.2.5","log-symbols":"^1.0.2","minimist":"^1.2.0","mkdirp":"^0.5.1","through2":"^2.0.1"},"keywords":["scaffold","template","skeleton","generator"],"gitHead":"c3b93e5cfd36049dde353df1ff7cef46fe5cf54b","_id":"template-copy@1.1.1","_shasum":"04b034ed1bd78352ad72b64ce3b4fccd95dceeb3","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mklabs","email":"daniel.mickael@gmail.com"},"dist":{"shasum":"04b034ed1bd78352ad72b64ce3b4fccd95dceeb3","tarball":"https://registry.npmjs.org/template-copy/-/template-copy-1.1.1.tgz","integrity":"sha512-EGTiHSHCGcjtoiYKyJD/t2YqSEiaSJSTH2W2wvFG8vbUNA5v8qHBSjZMrdGOC9WHR6FZ6VnNw6HS1vRFRnaGlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOyA2jXCahSJd7zb8tD41sctspvrfsOK9if6fbzeaEjAiB8g8gt1S48SI3nFrEtdn55J7bu+xU6j1pPcej6gcXJ0Q=="}]},"maintainers":[{"name":"mklabs","email":"daniel.mickael@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/template-copy-1.1.1.tgz_1464312112287_0.07856911374256015"}},"1.1.2":{"name":"template-copy","version":"1.1.2","description":"Tiny scaffolding engine","main":"index.js","scripts":{"test":"mocha -R spec"},"devDependencies":{"babel-cli":"^6.9.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.9.0","bake-cli":"^0.1.6","eslint":"^2.10.2","eslint-config-standard":"^5.3.1","eslint-plugin-promise":"^1.1.0","eslint-plugin-standard":"^1.3.2","mocha":"^2.5.2","standard-version":"^2.2.1","watchd":"github:mklabs/watchd"},"license":"MIT","dependencies":{"chalk":"^1.1.3","debug":"^2.2.0","deep-assign":"^2.0.0","glob":"^7.0.3","lodash.template":"^4.2.5","log-symbols":"^1.0.2","minimist":"^1.2.0","mkdirp":"^0.5.1","through2":"^2.0.1"},"keywords":["scaffold","template","skeleton","generator"],"gitHead":"6e0cc5bfc0b0b7c5090e8939006b13bea42953c6","_id":"template-copy@1.1.2","_shasum":"5b1ce12e47d23e9a00aa2e5c12fad8bc5e3a75ae","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mklabs","email":"daniel.mickael@gmail.com"},"dist":{"shasum":"5b1ce12e47d23e9a00aa2e5c12fad8bc5e3a75ae","tarball":"https://registry.npmjs.org/template-copy/-/template-copy-1.1.2.tgz","integrity":"sha512-+ALt3rwOYFkAXjpZV6To2gcFxP9hPQFBPetjm5IyuA+sxQath3r/PgeIFFNKd+/jwpH+w6Vw+RyXasJDelHBQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSJGMQb44lCyrZF2H5fWFp1pmAfpSAkl5Nc5rHsy3mSAIhAOET15p3GVGM3/+rZdcKFnngKstvQmVG5jeVgvrJw4uq"}]},"maintainers":[{"name":"mklabs","email":"daniel.mickael@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/template-copy-1.1.2.tgz_1464439603963_0.9886065232567489"}}},"readme":"# template-copy\n\n**Tiny scaffolding engine**\n\n> Like cp, but with Lodash templates\n\n## Install\n\n    npm i template-copy\n\n## Usage\n\n```js\nconst t = require('template-copy');\n\nt('index.html templates/ ~/.config/templates/ava/ test/');\n  .catch((err) => {\n    console.log('ERR', err);\n  })\n  .then(() => {\n    console.log('done');\n  });\n```\n\n## Description\n\nFile copy is done using Streams, with `lodash.template` parsing files if they\nhave template placeholders `{{ ... }}`.\n\nHandlebars template are executed in the context of the following object:\n\n```js\nObject.assign({}, env, opts)\n\n// where `env` and `opts` have the following structure\n\n{\n  env: {\n    PATH: '...',\n    ...\n  },\n\n  opts: {\n    debug: true,\n    name: 'Foobar'\n  }\n}\n```\n\nThe templates context is a merged version of various sources, with the\nfollowing order of precedence:\n\n- opts    - Command line flags as parsed by minimist\n- env     - `process.env` variables begining with `hcp_`\n- prompts - Generated prompts, see below\n\n## Prompts\n\nHandlebars templates can have any number of placeholders. Variables are either\navailable in the context object, or automatically prompted for the user to\nenter a value.\n\nSkipping a prompt is then available with `--name Value`.\n\nTo enable it, inquirer must be installed and available in `node_modules`.\n\n    npm i inquirer -D\n\nIf not installed, prompts are not generated.\n\n## JSON\n\nJSON files are merged together with destination, if it already exists.\n\n## Related\n\n- [hcp](https://github.com/mklabs/handlebars-copy) - CLI command power by template-copy\n","maintainers":[{"name":"mklabs","email":"daniel.mickael@gmail.com"}],"time":{"modified":"2022-06-27T04:38:38.148Z","created":"2016-05-27T01:14:04.029Z","1.1.0":"2016-05-27T01:14:04.029Z","1.1.1":"2016-05-27T01:21:54.170Z","1.1.2":"2016-05-28T12:46:46.483Z"},"keywords":["scaffold","template","skeleton","generator"],"license":"MIT","readmeFilename":"readme.md"}