{"_id":"bannerize","_rev":"13-07a1ef128bee186f86ed6b95f9765cdf","name":"bannerize","description":"Add a dynamic banner/license comment to any text file.","dist-tags":{"latest":"1.1.4"},"versions":{"1.0.0":{"name":"bannerize","version":"1.0.0","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"e58a9cd91a158812ec0b2709a00d46dc7150a869","_id":"bannerize@1.0.0","_shasum":"17ff10ba23f89813380f87a5b4caac40cbbabd50","_from":".","_npmVersion":"2.14.11","_nodeVersion":"0.12.7","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"17ff10ba23f89813380f87a5b4caac40cbbabd50","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.0.0.tgz","integrity":"sha512-yAcD1rXXxeF/o/bbxPeu58kpiwIEHnAheG9i70g7ZL1dMqxgHb4qL4vtXS6o5LCmrP47T8rZpQAzh0XHl295uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmmHrKOOzCqUQkQ3QuvFPUmMfPgtT8brPjgwINFZwHmQIhALZu9xN3bMsEFjeGt9Ou/RPUm3I5aKarT4Ln3f6uTfuC"}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"directories":{}},"1.0.1":{"name":"bannerize","version":"1.0.1","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"1bf85a7be6760731ea611b6b052b83b5bd017e5c","_id":"bannerize@1.0.1","_shasum":"161c40f9ec4cd042bf699feb55d46dfcfaa1641c","_from":".","_npmVersion":"3.4.0","_nodeVersion":"0.12.7","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"161c40f9ec4cd042bf699feb55d46dfcfaa1641c","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.0.1.tgz","integrity":"sha512-dUZd9ydFsroO95FLwSs7rAC3OhoCs5Raiw4kdI+lFRib0MQWtc6tDAQo4dYZGO89XHalldKuaps/CYdeugiE4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRHtGAQF4rs6bn7GcaTW6RSCH5m6jPO/p9y1IB0Oqj7AiEAw8EpoRw+BrE/TzjTN61WdktdkXfYkI01mpOs3diX6OY="}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"directories":{}},"1.0.2":{"name":"bannerize","version":"1.0.2","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"f225daf6b605941f5ffd1bfffbe0a778ba04dc71","_id":"bannerize@1.0.2","_shasum":"3f16bb0c2efe78f70efdddfcbc2dc9c196dfa17d","_from":".","_npmVersion":"2.14.12","_nodeVersion":"0.10.40","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"3f16bb0c2efe78f70efdddfcbc2dc9c196dfa17d","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.0.2.tgz","integrity":"sha512-uJ/sgR1neWsYdg5Y/AiaeAoQTswp5loCrJJSO6sv4zoQEVobLPzvsiFe+sWeV/XhTLu7muVyMydhpKWDYrZsNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXgSzsi3QA/JJKni678a7QeOnf2viVLNqTqlXnyJCDkwIhAMv8GifoWHOqDlhX+Q8LF4R2eWDS+A2BEhQJFD2e4pC8"}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"directories":{}},"1.1.0":{"name":"bannerize","version":"1.1.0","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"6a5aba99de3ab97263734e8430df98ac321a122e","_id":"bannerize@1.1.0","_shasum":"76a5096484ba9781dd0058fd9c523a0c2b732576","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.7","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"76a5096484ba9781dd0058fd9c523a0c2b732576","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.1.0.tgz","integrity":"sha512-hp0U+Kl3v3dIEt/q051lN/l9HGFtqDH6IF5NZ6JQ77fa5amE7xl4l2XebkeQR5A5/E34NcjJTPyyEdZH+izu3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2TXIlIhBgV9qHDTQ1Zu7vKDDI45+vd01jqKo6hz1niwIhAIzW1CldLsJypignTj5eseCOk28AuKsPD4Z21NTg3mo1"}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/bannerize-1.1.0.tgz_1472750800464_0.4078022576868534"},"directories":{}},"1.1.1":{"name":"bannerize","version":"1.1.1","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0","strip-bom":"^3.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"cd306bb0ba08e1623d9e6016f0468ae1c5ac598c","_id":"bannerize@1.1.1","_shasum":"26b274c4ba10d9d0b7545cd54bb2f650f4086311","_from":".","_npmVersion":"2.15.10","_nodeVersion":"4.5.0","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"26b274c4ba10d9d0b7545cd54bb2f650f4086311","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.1.1.tgz","integrity":"sha512-bENK2Q67mlglb8TdamcbH+nboz5i++YaS+9sH4pVB7lmYGih2/8Wm60z7ueMVA6YG2S/t6kS9Q5VSnYa0i9Jxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXkyX5mWTud4Wk3r3Vy3c4VoS1hEnghDMt4sJsvM9AMAiEAoPbXFmloaWfj5XOsbZFECEF8MQaZ1tqa2V2rQz3T2Q0="}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bannerize-1.1.1.tgz_1473517650281_0.052608184749260545"},"deprecated":"1.1.1 included a breaking change introduced by a dependency, please use 1.1.2 instead","directories":{}},"1.1.2":{"name":"bannerize","version":"1.1.2","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0","strip-bom":"^2.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"0f199375dd475a88679a522fc5b92741dd4d8d85","_id":"bannerize@1.1.2","_shasum":"caab039f2281e684cde8424df916a36db37db734","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.7","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"caab039f2281e684cde8424df916a36db37db734","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.1.2.tgz","integrity":"sha512-oZ4j0Yy2sP9p+oNAUWxbh8aLysoFf7BcGhFT+7y5oFQRI0kwRSPvebv34c0oIIMAXRIm/QloHUHJLrKzVh0kHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD02F3qsy8w3hhO+i1RsO18hjhFRhu9/7432PDmAPpD6gIgS2+8MaodW2yCCQ7nCDpv4KGaGNvfZVIpTb4flKMn1G0="}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/bannerize-1.1.2.tgz_1473704052315_0.4230020339600742"},"directories":{}},"1.1.3":{"name":"bannerize","version":"1.1.3","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^0.11.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0","strip-bom":"^2.0.0"},"devDependencies":{"mocha":"^2.3.4","rimraf":"^2.4.3"},"gitHead":"cb54b3fc5c8166b24dc4224d94b6f44d612f1ca5","_id":"bannerize@1.1.3","_shasum":"1ce701de6e680700d100aa33842ab37596ea703d","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.4","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"1ce701de6e680700d100aa33842ab37596ea703d","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.1.3.tgz","integrity":"sha512-I7ndtSSkQ9kvwtwYjix3ThyB4MUvNhryFabRT/rttRANmJhvjA2eloz7NbKCltz5b5L5mDOxDRgognnYpc3Mcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEK0oLZj+EY7Nu5qYwWtjgklbjktJHAilwfyEJkBTJRNAiEA8MkaGkiEmODPrp+qVXSgpXK7aS2wYyfBGGrYA0kZMgI="}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerize-1.1.3.tgz_1501767243252_0.400479543954134"},"directories":{}},"1.1.4":{"name":"bannerize","version":"1.1.4","description":"Add a dynamic banner/license comment to any text file.","main":"index.js","bin":{"bannerize":"cli.js"},"scripts":{"test":"mocha test","preversion":"npm test"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"keywords":["banner","comment","license","build","prepend","minify"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"homepage":"https://github.com/misteroneill/bannerize","dependencies":{"cli":"^1.0.1","cpr":"^1.0.0","ejs":"^2.3.4","find-root":"^0.1.1","flatten":"0.0.1","globby":"^4.0.0","strip-bom":"^2.0.0"},"devDependencies":{"mocha":"^6.0.2","rimraf":"^2.4.3"},"gitHead":"bb85dd070462832fa5035d8bd1e2da21386e8837","_id":"bannerize@1.1.4","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"integrity":"sha512-9y6AGQEK3sI5tmSER/FfKVglSOPI3u2TRHInfByaegSGh9/PsNC90X+1KR466lWj+NEOGOWO2m4e8QZGM/m4eA==","shasum":"ddf5ef75ae3643679a398f88924febcb8801c792","tarball":"https://registry.npmjs.org/bannerize/-/bannerize-1.1.4.tgz","fileCount":15,"unpackedSize":13212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclp+5CRA9TVsSAnZWagAAS2IP/0S+rNRv5OuTrowz7YFj\nUYRFmVMbTy2C1nhhKeaPuxDZFkqug/c8YLzdjg08LshWF8JBvbwxVBkg6YHD\nWqRvajrSt4BMqLjn2eTj4mHOvm32+SLZjm3LB5DWq9C+sBvBjxXxAckvfuSM\nJFDaa2MR80BFYkqKtbCJlsUTPy/9xxxwxad/ItyiqwH/YpF2rdQzA3yo10mb\n/QVfEJ8aTkyLO02ioAAF3fEXo5ofVvyQP/coeawyQ17TUyyNZuNAK6zWORpo\nceEqcaRTyc3Fzd/W0YrlYmlHaRrYRbV14fYRUBsunbQy01ebgTDejDgMvTz9\nmsZOhmz1d8fuxctPr7wQsAARi9q4twnRWAelW7FszkyOJbph5CI2UKgEphBR\n4EFyftRXJZtfLn/DSbKbAdIEZEzoNaZ5lHO8jSp0gqMwgXlPNePfJrOu+ef4\nZjp1bhpHoTkxNiv3JnVEdKVfdWrlj3jq/swIy56y2zqi1ysGAncQxbd/VgV0\nwPUaK5eJLcHTSzGVB+VDO65DyOVfFw8/hPqjspm/Ugq2sAqu28Mvx1C5ht3X\ncwr9KbzWqA+LtjG1oHkjAv5SVfCmZPS6QBmGq8gero0SYuGMkxPJcY1cNPaN\n9goHAFzxDHxDuPBEPrNfPfGWCGP944MINeFpZI0PSN8WVqvvWQAu3JO29e0e\naRpI\r\n=+jIc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAKzMITLto31fC6QQ3lpCEpHKaeHgDlRe1G2K//TXZ76AiBhHXlb3ps/6Qc6UA6U99aO1uoSbSfZQzTB6OSHZjUUvQ=="}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerize_1.1.4_1553375160940_0.8069334582950216"},"_hasShrinkwrap":false}},"readme":"# Bannerize [![Build Status](https://travis-ci.org/misteroneill/bannerize.svg?branch=master)](https://travis-ci.org/misteroneill/bannerize)\n\nAdd dynamic banner/license comments to files in a build process.\n\n```sh\n$ npm install -g bannerize\n```\n\n## Banner Templates\n\nBanner templates use the [EJS](https://www.npmjs.com/package/ejs) templating language. Templates are passed the following properties:\n\n- `pkg`: A representation of the nearest `package.json` file.\n- `date`: A JavaScript Date object.\n\nA simple banner might look something like:\n\n```\n/*! <%= pkg.name %> | <%= pkg.version %>\n *  (c) <%= date.getFullYear() %> <%= pkg.license %>\n */\n```\n\nAnd render to:\n\n```\n/*! bannerize | 1.0.0\n *  (c) 2015 MIT\n */\n```\n\n## CLI\n\n`bannerize` ships with a CLI command. Its options vary from the programmatic API. To see all its options, use:\n\n```sh\n$ bannerize --help\n```\n\nAn example usage might look like:\n\n```sh\n$ bannerize *.js *.css --banner=foo/bar.ejs\n```\n\n## API\n\nThe `bannerize` module can be used in your programs. It exports a single function, `bannerize`, which takes two arguments:\n\n### `bannerize(patterns, [options])`\n\n- `pattern` `{String|Array}`: A string or array of glob pattern(s) to which to apply the banner.\n- `[options]` `{Object}`: An object containing optional values.\n\nThe return value of `bannerize()` is a `Promise` that resolves with an array of all the file paths it modified.\n\n### Options\n\n- `banner`\n  A banner file location. Defaults to `banner.ejs` in the `cwd`.\n\n- `cwd`\n  Override the `cwd` for all paths passed to `bannerize`. Relative paths will be relative to `process.cwd()`. Defaults to `process.cwd()`.\n  \n- `lineBreak` (or `lineBreaks`)\n  Sets the linebreak (`'CRLF'`, `'LF'`). Defaults to `'LF'`.\n\n## API Example\n\nLet's say you have a project with a structure like this:\n\n```\n├─┬ dist/\n│ └── output.min.js\n├─┬ scripts/\n│ ├── add-banner.js\n| └── banner.ejs\n└── package.json\n```\n\nAnd let's say you want `scripts/add-banner.js` to add a banner to `dist/output.min.js` using `scripts/banner.ejs` as a template. You'll need to know the location of the output file and the banner template and the script might look like this:\n\n```js\nconst bannerize = require('bannerize');\n\n// The paths here are relative to the current working directory. For the sake\n// of example, let's say we don't know what it might be; so, we'll use\n// __dirname (which is scripts/ in our outlined directory structure above).\n//\n// We pass in the path to our output file(s), relative to __dirname:\nbannerize('../dist/output.min.js', {\n\n  // This is the path to our banner template file, relative to __dirname.\n  banner: 'banner.ejs',\n\n  // Finally, we specify the cwd as the directory where this file is \n  // (i.e. scripts/)\n  cwd: __dirname\n}).\n\n// bannerize returns a Promise which resolves with a list of files. We log\n// the list here for debugging.\nthen((files) => {\n  console.log('Added banner(s) to ' + files.join(', '));\n}, () => {\n  console.error('Failed adding banner(s)!');\n});\n```\n","maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"time":{"modified":"2022-06-13T04:15:02.086Z","created":"2015-11-18T01:23:51.865Z","1.0.0":"2015-11-18T01:23:51.865Z","1.0.1":"2015-11-19T01:49:38.783Z","1.0.2":"2015-11-30T15:27:13.669Z","1.1.0":"2016-09-01T17:26:42.554Z","1.1.1":"2016-09-10T14:27:31.729Z","1.1.2":"2016-09-12T18:14:14.380Z","1.1.3":"2017-08-03T13:34:04.221Z","1.1.4":"2019-03-23T21:06:01.161Z"},"homepage":"https://github.com/misteroneill/bannerize","keywords":["banner","comment","license","build","prepend","minify"],"repository":{"type":"git","url":"git+https://github.com/misteroneill/bannerize.git"},"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"bugs":{"url":"https://github.com/misteroneill/bannerize/issues"},"license":"MIT","readmeFilename":"README.md","users":{"boneskull":true}}