{"_id":"bannerjs","_rev":"3281827","name":"bannerjs","description":"Get one-line/multi-line comment banner based on package.json.","dist-tags":{"latest":"3.0.2"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"time":{"modified":"2024-05-16T05:30:49.000Z","created":"2016-05-05T17:51:29.255Z","3.0.2":"2023-11-27T01:08:19.338Z","3.0.1":"2022-07-21T02:57:40.547Z","3.0.0":"2022-07-21T02:35:01.870Z","2.1.0":"2021-10-29T09:47:59.039Z","2.0.1":"2021-09-20T07:36:00.789Z","2.0.0":"2021-09-04T15:11:46.105Z","1.0.7":"2019-11-26T06:54:28.928Z","1.0.6":"2019-03-07T11:05:58.941Z","1.0.5":"2016-11-12T16:56:55.490Z","1.0.4":"2016-11-10T10:38:50.118Z","1.0.3":"2016-05-16T02:13:31.419Z","1.0.2":"2016-05-15T17:55:46.599Z","1.0.1":"2016-05-06T05:03:28.466Z","1.0.0":"2016-05-05T17:51:29.255Z"},"users":{},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"versions":{"3.0.2":{"name":"bannerjs","version":"3.0.2","description":"Get one-line/multi-line comment banner based on package.json.","homepage":"https://jaywcjlove.github.io/bannerjs/","funding":"https://jaywcjlove.github.io/#/sponsor","bin":{"bannerjs":"bin/cli.js"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"start":"node lib/index.js","watch":"tsbb watch","build":"tsbb build","test":"tsbb test","coverage":"tsbb test --coverage"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"engines":{"node":">=14.16"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"jest":{"coverageReporters":["lcov","json-summary"],"moduleNameMapper":{"^(\\.{1,2}/.*)\\.js$":"$1"}},"devDependencies":{"types-package-json":"^2.0.39","tsbb":"^4.1.5"},"_id":"bannerjs@3.0.2","gitHead":"873c497b52e19165ca6a1ab4d712b8f5f08e5c33","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"shasum":"b9f1b964c67fe4372329348f8d98545a2cea7036","size":4437,"noattachment":false,"key":"/bannerjs/-/bannerjs-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-3.0.2.tgz"},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_3.0.2_1701047299159_0.32239305151454767"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-27T01:08:19.338Z","publish_time":1701047299338,"_source_registry_name":"default","_cnpm_publish_time":1701047299338},"3.0.1":{"name":"bannerjs","version":"3.0.1","description":"Get one-line/multi-line comment banner based on package.json.","homepage":"https://jaywcjlove.github.io/bannerjs/","bin":{"bannerjs":"bin/cli.js"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"start":"node lib/index.js","watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel","test":"tsbb test","coverage":"tsbb test --coverage"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"engines":{"node":">=14.16"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"jest":{"coverageReporters":["lcov","json-summary"],"moduleNameMapper":{"^(\\.{1,2}/.*)\\.js$":"$1"}},"devDependencies":{"types-package-json":"^2.0.39","tsbb":"^3.7.6"},"gitHead":"9f398ff8da2d71132c0b43ef1fc9c8239be73cc5","_id":"bannerjs@3.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"8fa2df4f7a3d3ceb2de86c9125dfaf4423645810","size":4384,"noattachment":false,"key":"/bannerjs/-/bannerjs-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-3.0.1.tgz"},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_3.0.1_1658372260389_0.5725304139931859"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-21T02:58:46.032Z","publish_time":1658372260547,"_cnpm_publish_time":1658372260547},"3.0.0":{"name":"bannerjs","version":"3.0.0","description":"Get one-line/multi-line comment banner based on package.json.","homepage":"https://jaywcjlove.github.io/bannerjs/","bin":{"bannerjs":"bin/cli.js"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","type":"module","exports":"./index.js","types":"./index.d.ts","scripts":{"start":"node lib/index.js","watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel","test":"tsbb test","coverage":"tsbb test --coverage"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"engines":{"node":">=14.16"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"jest":{"coverageReporters":["lcov","json-summary"],"moduleNameMapper":{"^(\\.{1,2}/.*)\\.js$":"$1"}},"devDependencies":{"types-package-json":"^2.0.39","tsbb":"^3.7.6"},"gitHead":"7be2f2ad9b24729126483dc8435f70f22c281ead","_id":"bannerjs@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"shasum":"3efe547e344a7ffc522fce69308799f723384f4e","size":4387,"noattachment":false,"key":"/bannerjs/-/bannerjs-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-3.0.0.tgz"},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_3.0.0_1658370901616_0.062014706930385355"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-21T02:35:06.915Z","publish_time":1658370901870,"_cnpm_publish_time":1658370901870},"2.1.0":{"name":"bannerjs","version":"2.1.0","description":"Get one-line/multi-line comment banner based on package.json.","homepage":"https://jaywcjlove.github.io/bannerjs/","main":"lib/index.js","bin":{"bannerjs":"bin/cli.js"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","scripts":{"start":"node lib/index.js","watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel","test":"tsbb test","coverage":"tsbb test --coverage"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"jest":{"coverageReporters":["lcov","json-summary"]},"devDependencies":{"types-package-json":"2.0.39","tsbb":"3.3.7"},"gitHead":"30c2a695a1d412d3d00d3d2e97b2d5cc081b08a6","_id":"bannerjs@2.1.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"shasum":"83c10409cd67c5764117ef293e37245b93c74366","size":4464,"noattachment":false,"key":"/bannerjs/-/bannerjs-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-2.1.0.tgz"},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_2.1.0_1635500878883_0.5326810826628166"},"_hasShrinkwrap":false,"publish_time":1635500879039,"_cnpm_publish_time":1635500879039,"_cnpmcore_publish_time":"2021-12-17T08:39:47.361Z"},"2.0.1":{"name":"bannerjs","version":"2.0.1","description":"Get one-line/multi-line comment banner based on package.json.","main":"lib/index.js","bin":{"bannerjs":"bin/cli.js"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","scripts":{"start":"node lib/index.js","watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel","test":"tsbb test","coverage":"tsbb test --coverage"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"jest":{"coverageReporters":["lcov","json-summary"]},"devDependencies":{"types-package-json":"2.0.39","tsbb":"3.2.1"},"gitHead":"48f55e56ad36284503eec242815f86d68100a6ae","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@2.0.1","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"ea104d1f0ce5daf90761cf71867b814bff1bec26","size":4484,"noattachment":false,"key":"/bannerjs/-/bannerjs-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-2.0.1.tgz"},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_2.0.1_1632123360620_0.35881062968123856"},"_hasShrinkwrap":false,"publish_time":1632123360789,"_cnpm_publish_time":1632123360789,"_cnpmcore_publish_time":"2021-12-17T08:39:47.571Z"},"2.0.0":{"name":"bannerjs","version":"2.0.0","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"bin/cli.js"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","scripts":{"start":"node lib/index.js","watch":"tsbb watch --no-esm --disable-babel","build":"tsbb build --no-esm --disable-babel","test":"tsbb test","coverage":"tsbb test --coverage"},"repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"devDependencies":{"types-package-json":"2.0.39","tsbb":"3.0.4"},"gitHead":"8eb0b9670486d2deb2c4bf5889d90967e6915a3a","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@2.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"4d686d7b891472dfa1714ba3e86a792d7afa49bb","size":4415,"noattachment":false,"key":"/bannerjs/-/bannerjs-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-2.0.0.tgz"},"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_2.0.0_1630768305962_0.680369357446809"},"_hasShrinkwrap":false,"publish_time":1630768306105,"_cnpm_publish_time":1630768306105,"_cnpmcore_publish_time":"2021-12-17T08:39:47.777Z"},"1.0.7":{"name":"bannerjs","version":"1.0.7","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"dependencies":{"object-assign":"^4.1.1"},"gitHead":"831590769d0954c23033f5b00f15d020f0908d52","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.7","_nodeVersion":"12.10.0","_npmVersion":"6.11.3","dist":{"shasum":"01906bfcb54a6d9f726ffb6e3e7a47094ce9adb2","size":2339,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.7.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_1.0.7_1574751268792_0.4093945196096547"},"_hasShrinkwrap":false,"publish_time":1574751268928,"_cnpm_publish_time":1574751268928,"_cnpmcore_publish_time":"2021-12-17T08:39:48.030Z"},"1.0.6":{"name":"bannerjs","version":"1.0.6","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"dependencies":{"object-assign":"^4.1.0"},"gitHead":"e96c4647d262775cd6ee9070f96afc6702c34ec2","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.6","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","dist":{"shasum":"cb8421528a77528aaa049cfdba6ee4136db58ff5","size":2333,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.6.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmUser":{"name":"wcjiang","email":"398188662@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bannerjs_1.0.6_1551956758802_0.2629711723024799"},"_hasShrinkwrap":false,"publish_time":1551956758941,"_cnpm_publish_time":1551956758941,"_cnpmcore_publish_time":"2021-12-17T08:39:48.300Z"},"1.0.5":{"name":"bannerjs","version":"1.0.5","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"dependencies":{"object-assign":"^4.1.0"},"gitHead":"88819b55a2831339347625493965b6af6f934cab","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.5","_shasum":"5bc4648eafa688ad76a5247834fdc3092895083b","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jslite","email":"398188662@qq.com"},"dist":{"shasum":"5bc4648eafa688ad76a5247834fdc3092895083b","size":2418,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.5.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bannerjs-1.0.5.tgz_1478969815259_0.5074667730368674"},"directories":{},"publish_time":1478969815490,"_hasShrinkwrap":false,"_cnpm_publish_time":1478969815490,"_cnpmcore_publish_time":"2021-12-17T08:39:48.648Z"},"1.0.4":{"name":"bannerjs","version":"1.0.4","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"dependencies":{"object-assign":"^4.1.0"},"gitHead":"3a1766222ef7e48f14df27f36ed5b978fe53a788","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.4","_shasum":"21c424ca85477addcc8341ee99b49ef13e8fdcf5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"jslite","email":"398188662@qq.com"},"dist":{"shasum":"21c424ca85477addcc8341ee99b49ef13e8fdcf5","size":2421,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.4.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bannerjs-1.0.4.tgz_1478774328308_0.35101706022396684"},"directories":{},"publish_time":1478774330118,"_hasShrinkwrap":false,"_cnpm_publish_time":1478774330118,"_cnpmcore_publish_time":"2021-12-17T08:39:48.829Z"},"1.0.3":{"name":"bannerjs","version":"1.0.3","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"devDependencies":{"object-assign":"^4.1.0"},"gitHead":"739d9b695f8ca08ac70e95bc70db02edc7684a60","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.3","_shasum":"8c50898148c41b331db4e066ce0624ea8fbb6487","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"jslite","email":"398188662@qq.com"},"dist":{"shasum":"8c50898148c41b331db4e066ce0624ea8fbb6487","size":2422,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.3.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/bannerjs-1.0.3.tgz_1463364808183_0.11888748942874372"},"directories":{},"publish_time":1463364811419,"_hasShrinkwrap":false,"_cnpm_publish_time":1463364811419,"_cnpmcore_publish_time":"2021-12-17T08:39:49.031Z"},"1.0.2":{"name":"bannerjs","version":"1.0.2","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"gitHead":"45bfafec7f2d8a274a32b44c5af1866b19fc1971","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.2","_shasum":"775e6a56affb9f193ab2ad31aebdb6539b3c8725","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"jslite","email":"398188662@qq.com"},"dist":{"shasum":"775e6a56affb9f193ab2ad31aebdb6539b3c8725","size":2147,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.2.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bannerjs-1.0.2.tgz_1463334946062_0.6359549213666469"},"directories":{},"publish_time":1463334946599,"_hasShrinkwrap":false,"_cnpm_publish_time":1463334946599,"_cnpmcore_publish_time":"2021-12-17T08:39:49.485Z"},"1.0.1":{"name":"bannerjs","version":"1.0.1","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"gitHead":"7fbf6b14163055d5b32afbd3f4fb99373a0c67dd","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.1","_shasum":"495e749be5e642ee6b2e3980c03bcd5e50cf8bd4","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"jslite","email":"398188662@qq.com"},"dist":{"shasum":"495e749be5e642ee6b2e3980c03bcd5e50cf8bd4","size":2000,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.1.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/bannerjs-1.0.1.tgz_1462511005445_0.716572062112391"},"directories":{},"publish_time":1462511008466,"_hasShrinkwrap":false,"_cnpm_publish_time":1462511008466,"_cnpmcore_publish_time":"2021-12-17T08:39:49.709Z"},"1.0.0":{"name":"bannerjs","version":"1.0.0","description":"Get one-line/multi-line comment banner based on package.json.","bin":{"bannerjs":"./bin/cli.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"kenny wang","email":"wowohoo@qq.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaywcjlove/bannerjs.git"},"bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"keywords":["comment","banner","bannerjs","header","license","generator","package.json"],"gitHead":"ef59a54ee296b84e5e6581ff0d6db83928a75e0d","homepage":"https://github.com/jaywcjlove/bannerjs#readme","_id":"bannerjs@1.0.0","_shasum":"4357f09c6aadfe7f4e88a7e62f2c96c82ea80731","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"jslite","email":"398188662@qq.com"},"dist":{"shasum":"4357f09c6aadfe7f4e88a7e62f2c96c82ea80731","size":1926,"noattachment":false,"key":"/bannerjs/-/bannerjs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/bannerjs/download/bannerjs-1.0.0.tgz"},"maintainers":[{"name":"wcjiang","email":"398188662@qq.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bannerjs-1.0.0.tgz_1462470688734_0.9700774415396154"},"directories":{},"publish_time":1462470689255,"_hasShrinkwrap":false,"_cnpm_publish_time":1462470689255,"_cnpmcore_publish_time":"2021-12-17T08:39:49.922Z"}},"readme":"# bannerjs\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![Build & Deploy](https://github.com/jaywcjlove/bannerjs/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/bannerjs/actions/workflows/ci.yml)\n[![Coverage Status](https://jaywcjlove.github.io/bannerjs/badges.svg)](https://jaywcjlove.github.io/bannerjs/lcov-report/)\n[![Repo Dependents](https://badgen.net/github/dependents-repo/jaywcjlove/bannerjs)](https://github.com/jaywcjlove/bannerjs/network/dependents)\n[![npm version](https://img.shields.io/npm/v/bannerjs.svg)](https://www.npmjs.com/package/bannerjs)\n[![NPM Download](https://img.shields.io/npm/dm/bannerjs.svg?style=flat)](https://www.npmjs.com/package/bannerjs)\n\nAdd a banner to a string. Get one-line/multi-line comment banner based on package.json.\n\n## Install\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c): Node 14+ is needed to use it and it must be `import` instead of `require`.\n\n```bash\nnpm install bannerjs --save\n```\n\nOne-line results in:\n\n```js\n/*! bannerjs v1.0.8 | MIT (c) 2016 kenny wang <wowohoo@qq.com> | https://github.com/jaywcjlove/bannerjs */\n```\n\nMulti-line results in:\n\n```js\n/*!\n * bannerjs v1.0.0\n * Add a banner to a string. Get one-line/multi-line comment banner based on package.json.\n * \n * Copyright (c) 2016 kenny wang <wowohoo@qq.com>\n * https://github.com/jaywcjlove/bannerjs\n *\n * Licensed under the MIT license.\n */\n```\n\n## Structure\n\nThe following keys should be defined in package.json:\n\n```json\n{\n  \"name\": \"bannerjs\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Add a banner to a string. Get one-line/multi-line comment banner based on package.json.\",\n  \"license\": \"MIT\",\n  \"author\": {\n    \"name\": \"kenny wang\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/jaywcjlove/bannerjs.git\"\n  }\n}\n```\n\n`author` value can be defined like object or simply string too.\n\n\n## Use\n\n### option\n\n- `multibanner(option)` Multi-line results\n- `onebanner(option)` One-line results\n\n```js\nvar banner = require('bannerjs');\nbannerjs.multibanner({\n  author:\"banner.js\",\n  homepage:\"http://....\",\n  name:\"banner.js\",\n  license:\"MIT\",\n  version:1.2.3,\n  description:\"description\"\n})\n```\n\n### API\n\n```ts\nimport { PackageJson } from 'types-package-json';\nexport * from './cli.js';\n\nexport declare function getPackage(rootPath?: string): PackageJson;\nexport declare function onebanner(option?: PackageJson, rootPath?: string): string;\nexport declare function multibanner(option?: PackageJson, rootPath?: string): string;\n```\n\n## Use in gulp\n\n- `bannerjs.multibanner()` Multi-line results\n- `bannerjs.onebanner()` One-line results\n\n```js \nvar gulp = require('gulp');\nvar banner = require('gulp-banner');\nvar bannerjs = require('bannerjs');\n\ngulp.task('default', function() {\n  gulp.src('./test.js')\n    .pipe(banner(bannerjs.multibanner()))\n    .pipe(gulp.dest('dist/'));\n});\n```\n\n## Use in Node\n\n```js\nvar fs = require('fs');\nvar banner = require('bannerjs');\nvar uglify = require('uglify-js')\n\nvar code = fs.readFileSync('src/test.js', 'utf-8')\nvar minified = banner.onebanner() + '\\n' + uglify.minify(code, {\n  fromString: true,\n  output: {\n    ascii_only: true\n  }\n}).code;\n\nfs.writeFileSync('src/test.js', minified);\n```\n\n## Use in Rollup\n\n```js\nimport banner from 'bannerjs';\n\n// rollup.config.js\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'cjs',\n    banner: banner.multibanner()\n  }\n};\n```\n\n\n## Command Line\n\n```bash\nUsage: bannerjs\n\nPipe Usage: bannerjs\n\nOptions:\n\n -m --multi     Output multi-line results\n -o --one       Output one-line results\n```\n\nYou can easilly pipe unix commands together like:\n\n```bash\ncat my-js.js | bannerjs -o | uglify-js > my-js.min.js\n```\n\n**Npm Script**\n\n```json\n{\n  \"scripts\":{\n    \"build:min\": \"cat my-js.js | uglifyjs | bannerjs -o > dist/my-js.min.js\",\n    \"build:dist\": \"cat my-js.js | bannerjs -m | uglifyjs -b beautify=true --comments 'all' > dist/my-js.js \"\n  }\n}\n```\n\n# License\n\nMIT license\n","_attachments":{},"homepage":"https://jaywcjlove.github.io/bannerjs/","bugs":{"url":"https://github.com/jaywcjlove/bannerjs/issues"},"license":"MIT"}