{"_id":"update-banner","_rev":"4175187","name":"update-banner","description":"Update the banner comment in a string of javascript.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2026-03-01T21:29:43.000Z","created":"2015-02-05T05:00:11.632Z","0.2.0":"2017-02-01T17:42:05.901Z","0.1.1":"2015-02-23T22:05:31.882Z","0.1.0":"2015-02-05T05:00:11.632Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/update-banner.git"},"versions":{"0.2.0":{"name":"update-banner","description":"Update the banner comment in a string of javascript.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/update-banner","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/update-banner.git"},"bugs":{"url":"https://github.com/jonschlinkert/update-banner/issues"},"license":"MIT","files":["index.js","lib","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"engine-base":"^0.1.2","extend-shallow":"^2.0.1","extract-banner":"^0.1.2","isobject":"^3.0.0","lazy-cache":"^2.0.2","parse-author":"^1.0.0","strip-banner":"^0.2.0","update-copyright":"^0.2.4"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["banner","copyright","fix","lint","linter","maintain","maintainance","plugin","plugins","up-to-date","update","update-plugin","update-updater","updateplugin","updater","upkeep"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["extract-banner","strip-banner","update-copyright"]},"reflinks":["update-copyright","verb"],"lint":{"reflinks":true}},"gitHead":"41376244b483f5d9b7e657312ac07cddc132c9af","_id":"update-banner@0.2.0","_shasum":"9d127cf30dbfe0e70ddca75d1173574661d427df","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9d127cf30dbfe0e70ddca75d1173574661d427df","size":3498,"noattachment":false,"key":"/update-banner/-/update-banner-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/update-banner/download/update-banner-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/update-banner-0.2.0.tgz_1485970924171_0.8745658909901977"},"directories":{},"publish_time":1485970925901,"_hasShrinkwrap":false,"_cnpm_publish_time":1485970925901,"_cnpmcore_publish_time":"2021-12-17T03:41:47.105Z"},"0.1.1":{"name":"update-banner","description":"Add or update a banner in a string.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/update-banner","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/update-banner"},"bugs":{"url":"https://github.com/jonschlinkert/update-banner/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"load-pkg":"^1.0.0","lodash":"^3.2.0","parse-author":"^0.1.0","parse-authors":"^0.2.2","strip-banner":"^0.1.1","update-copyright":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["banner","copyright","update"],"gitHead":"66dd25212bcc1bd9c882dd74cc2a2fba86c21e14","_id":"update-banner@0.1.1","_shasum":"a025d609be175f359701c43e33c9fac9bb08a821","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a025d609be175f359701c43e33c9fac9bb08a821","size":2445,"noattachment":false,"key":"/update-banner/-/update-banner-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/update-banner/download/update-banner-0.1.1.tgz"},"directories":{},"publish_time":1424729131882,"_hasShrinkwrap":false,"_cnpm_publish_time":1424729131882,"_cnpmcore_publish_time":"2021-12-17T03:41:47.323Z"},"0.1.0":{"name":"update-banner","description":"Add or update a banner in a string.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/update-banner","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/update-banner.git"},"bugs":{"url":"https://github.com/jonschlinkert/update-banner/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/update-banner/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"files":["index.js"],"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["banner","copyright","update"],"dependencies":{"load-pkg":"^1.0.0","lodash":"^2.4.1","parse-author":"^0.1.0","parse-authors":"^0.2.2","strip-banner":"^0.1.1","update-copyright":"^0.1.0"},"gitHead":"1017d59e8367f9894cd21e30aac1d6931710c843","_id":"update-banner@0.1.0","_shasum":"e0cac2a737d4191103030a296d9334711823a852","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e0cac2a737d4191103030a296d9334711823a852","size":1821,"noattachment":false,"key":"/update-banner/-/update-banner-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/update-banner/download/update-banner-0.1.0.tgz"},"directories":{},"publish_time":1423112411632,"_hasShrinkwrap":false,"_cnpm_publish_time":1423112411632,"_cnpmcore_publish_time":"2021-12-17T03:41:47.547Z"}},"readme":"# update-banner [![NPM version](https://img.shields.io/npm/v/update-banner.svg?style=flat)](https://www.npmjs.com/package/update-banner) [![NPM monthly downloads](https://img.shields.io/npm/dm/update-banner.svg?style=flat)](https://npmjs.org/package/update-banner)  [![NPM total downloads](https://img.shields.io/npm/dt/update-banner.svg?style=flat)](https://npmjs.org/package/update-banner) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/update-banner.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/update-banner)\n\n> Update the banner comment in a string of javascript.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save update-banner\n```\n\n## Usage\n\nIn existing banners, copyright statements are updated using [update-copyright](https://github.com/jonschlinkert/update-copyright). If the string does not have a banner one will be added using a [template](#options.template).\n\n```js\nvar banner = require('update-banner');\nvar str = fs.readFileSync('index.js', 'utf8');\nbanner(str);\n```\n\nPass a custom template and/or data:\n\n```js\nvar copyright = 'Copyright (c) 2015, Jon Schlinkert.';\n\nconsole.log(banner('/* <%= copyright %> */\\n', {\n  copyright: copyright \n}));\n//=> '/* Copyright (c) 2015, Jon Schlinkert. */\\n'\n```\n\n## Options\n\n### options.template\n\nCustomize the [template](lib/template.js) to use for creating a banner.\n\n**Example**\n\nThis is the default template\n\n```js\n/*!\n * <%= name %> <<%= repository %>>\n *\n * <%= copyright %>\n * Released under the <%= license %> License.\n */\n\n```\n\n## About\n\n### Related projects\n\n* [extract-banner](https://www.npmjs.com/package/extract-banner): Extract a banner comment from a string of javascript. | [homepage](https://github.com/jonschlinkert/extract-banner \"Extract a banner comment from a string of javascript.\")\n* [strip-banner](https://www.npmjs.com/package/strip-banner): Strip banners from code. | [homepage](https://github.com/jonschlinkert/strip-banner \"Strip banners from code.\")\n* [update-copyright](https://www.npmjs.com/package/update-copyright): Update a copyright statement with the current year. Also makes minor corrections. | [homepage](https://github.com/jonschlinkert/update-copyright \"Update a copyright statement with the current year. Also makes minor corrections.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nMIT\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 01, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/update-banner","bugs":{"url":"https://github.com/jonschlinkert/update-banner/issues"},"license":"MIT"}