{"_id":"process-warning","_rev":"4091693","name":"process-warning","description":"A small utility for creating warnings and emitting them.","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"time":{"modified":"2025-12-02T22:23:14.000Z","created":"2021-12-28T14:00:11.396Z","5.0.0":"2025-03-03T17:27:10.377Z","4.0.1":"2025-01-03T17:36:00.542Z","4.0.0":"2024-07-09T12:24:48.791Z","3.0.0":"2023-12-12T20:27:35.442Z","2.3.2":"2023-12-02T15:27:55.548Z","2.3.1":"2023-11-18T18:48:07.936Z","2.3.0":"2023-10-27T16:24:24.256Z","2.2.0":"2023-04-04T17:12:05.333Z","2.1.0":"2022-12-04T23:41:57.917Z","2.0.0":"2022-05-19T09:01:22.895Z","1.0.0":"2021-12-28T14:00:11.396Z"},"users":{},"author":{"name":"Tomas Della Vedova"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"versions":{"5.0.0":{"name":"process-warning","version":"5.0.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"eslint","lint:fix":"eslint --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"c8 --100 node --test","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"contributors":[{"name":"Matteo Collina","email":"hello@matteocollina.com"},{"name":"Manuel Spigolon","email":"behemoth89@gmail.com"},{"name":"James Sumners","url":"https://james.sumners.info"},{"name":"Frazer Smith","email":"frazer.dev@icloud.com","url":"https://github.com/fdawgs"}],"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","funding":[{"type":"github","url":"https://github.com/sponsors/fastify"},{"type":"opencollective","url":"https://opencollective.com/fastify"}],"devDependencies":{"@fastify/pre-commit":"^2.1.0","benchmark":"^2.1.4","c8":"^10.1.3","eslint":"^9.17.0","jest":"^29.7.0","neostandard":"^0.12.0","tsd":"^0.31.0"},"_id":"process-warning@5.0.0","gitHead":"fcdbf17423a264a2894bc3266f950d826ff47a74","_nodeVersion":"20.18.0","_npmVersion":"10.8.2","dist":{"shasum":"566e0bf79d1dff30a72d8bbbe9e8ecefe8d378d7","size":6725,"noattachment":false,"key":"/process-warning/-/process-warning-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-5.0.0.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/process-warning_5.0.0_1741022830199_0.5098815229222053"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-03T17:27:10.377Z","publish_time":1741022830377,"_source_registry_name":"default","_cnpm_publish_time":1741022830377},"4.0.1":{"name":"process-warning","version":"4.0.1","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"eslint","lint:fix":"eslint --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"contributors":[{"name":"Matteo Collina","email":"hello@matteocollina.com"},{"name":"Manuel Spigolon","email":"behemoth89@gmail.com"},{"name":"James Sumners","url":"https://james.sumners.info"},{"name":"Frazer Smith","email":"frazer.dev@icloud.com","url":"https://github.com/fdawgs"}],"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","funding":[{"type":"github","url":"https://github.com/sponsors/fastify"},{"type":"opencollective","url":"https://opencollective.com/fastify"}],"devDependencies":{"@fastify/pre-commit":"^2.1.0","benchmark":"^2.1.4","eslint":"^9.17.0","jest":"^29.7.0","neostandard":"^0.12.0","tap":"^18.7.2","tsd":"^0.31.0"},"_id":"process-warning@4.0.1","gitHead":"1f0a4700f557892e9527af86a9492c9f1919fa58","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"shasum":"5c1db66007c67c756e4e09eb170cdece15da32fb","size":6613,"noattachment":false,"key":"/process-warning/-/process-warning-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-4.0.1.tgz"},"_npmUser":{"name":"fdawgs","email":"frazer.dev@icloud.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/process-warning_4.0.1_1735925760389_0.2448809498314879"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-03T17:36:00.542Z","publish_time":1735925760542,"_source_registry_name":"default","_cnpm_publish_time":1735925760542},"4.0.0":{"name":"process-warning","version":"4.0.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"standard","lint:fix":"standard --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"@fastify/pre-commit":"^2.1.0","benchmark":"^2.1.4","jest":"^29.7.0","standard":"^17.1.0","tap":"^18.7.2","tsd":"^0.31.0"},"_id":"process-warning@4.0.0","gitHead":"25a5ab10967578b09ec8cdde21ab54cf434adc20","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"shasum":"581e3a7a1fb456c5f4fd239f76bce75897682d5a","size":6304,"noattachment":false,"key":"/process-warning/-/process-warning-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-4.0.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_4.0.0_1720527888655_0.18517389998169254"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-09T12:24:48.791Z","publish_time":1720527888791,"_source_registry_name":"default","_cnpm_publish_time":1720527888791},"3.0.0":{"name":"process-warning","version":"3.0.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"standard","lint:fix":"standard --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"benchmark":"^2.1.4","jest":"^29.0.1","standard":"^17.0.0","tap":"^16.3.0","tsd":"^0.29.0"},"_id":"process-warning@3.0.0","gitHead":"0378576edb8e72d379bdc4891a03ddac3e4a062e","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"shasum":"96e5b88884187a1dce6f5c3166d611132058710b","size":6264,"noattachment":false,"key":"/process-warning/-/process-warning-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-3.0.0.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_3.0.0_1702412855263_0.40858628132912433"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-12T20:27:35.442Z","publish_time":1702412855442,"_source_registry_name":"default","_cnpm_publish_time":1702412855442},"2.3.2":{"name":"process-warning","version":"2.3.2","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"standard","lint:fix":"standard --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"benchmark":"^2.1.4","jest":"^29.0.1","standard":"^17.0.0","tap":"^16.3.0","tsd":"^0.29.0"},"_id":"process-warning@2.3.2","gitHead":"430106df7cc72c1b65ef6d01470d98409019dda8","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"shasum":"70d8a3251aab0eafe3a595d8ae2c5d2277f096a5","size":6521,"noattachment":false,"key":"/process-warning/-/process-warning-2.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-2.3.2.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_2.3.2_1701530875296_0.20551267969198816"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-02T15:27:55.548Z","publish_time":1701530875548,"_source_registry_name":"default","_cnpm_publish_time":1701530875548},"2.3.1":{"name":"process-warning","version":"2.3.1","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"standard","lint:fix":"standard --fix","benchmark":"node benchmarks/warn.js","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"benchmark":"^2.1.4","jest":"^29.0.1","standard":"^17.0.0","tap":"^16.3.0","tsd":"^0.29.0"},"_id":"process-warning@2.3.1","gitHead":"c56e1e851c0cd93527595e6f326724135d55353d","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"shasum":"0caf992272c439f45dd416e1407ee25a3d4c778a","size":6848,"noattachment":false,"key":"/process-warning/-/process-warning-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-2.3.1.tgz"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_2.3.1_1700333287732_0.8978728068930217"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-18T18:48:07.936Z","publish_time":1700333287936,"_source_registry_name":"default","_cnpm_publish_time":1700333287936},"2.3.0":{"name":"process-warning","version":"2.3.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","type":"commonjs","types":"types/index.d.ts","scripts":{"lint":"standard","lint:fix":"standard --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"benchmark":"^2.1.4","jest":"^29.0.1","standard":"^17.0.0","tap":"^16.3.0","tsd":"^0.29.0"},"_id":"process-warning@2.3.0","gitHead":"c0649f8a240039a60d09079c3d8906f270c70f89","_nodeVersion":"18.18.1","_npmVersion":"9.8.1","dist":{"shasum":"02ccba12fd55c05879cb7ddab31b6a20af2fe4d9","size":6521,"noattachment":false,"key":"/process-warning/-/process-warning-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-2.3.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_2.3.0_1698423864053_0.678353588528567"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-27T16:24:24.256Z","publish_time":1698423864256,"_source_registry_name":"default","_cnpm_publish_time":1698423864256},"2.2.0":{"name":"process-warning","version":"2.2.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","types":"types/index.d.ts","scripts":{"lint":"standard","lint:fix":"standard --fix","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"benchmark":"^2.1.4","jest":"^29.0.1","standard":"^17.0.0","tap":"^16.3.0","tsd":"^0.28.0"},"gitHead":"ca9dd68fe90ad5aafc0a1ce0384d45b2fe927733","_id":"process-warning@2.2.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"008ec76b579820a8e5c35d81960525ca64feb626","size":4834,"noattachment":false,"key":"/process-warning/-/process-warning-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-2.2.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_2.2.0_1680628325134_0.5408404237875684"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-04T17:12:05.333Z","publish_time":1680628325333,"_cnpm_publish_time":1680628325333},"2.1.0":{"name":"process-warning","version":"2.1.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","types":"types/index.d.ts","scripts":{"lint":"standard","test":"npm run test:unit && npm run test:jest && npm run test:typescript","test:jest":"jest jest.test.js","test:unit":"tap","test:typescript":"tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"benchmark":"^2.1.4","jest":"^29.0.1","standard":"^17.0.0","tap":"^16.3.0","tsd":"^0.24.1"},"gitHead":"f605697033b57a890b2702e6fd2dc866b41ca91e","_id":"process-warning@2.1.0","_nodeVersion":"16.17.0","_npmVersion":"9.1.2","dist":{"shasum":"1e60e3bfe8183033bbc1e702c2da74f099422d1a","size":4410,"noattachment":false,"key":"/process-warning/-/process-warning-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-2.1.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_2.1.0_1670197317769_0.34160910183554405"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-04T23:42:01.260Z","publish_time":1670197317917,"_cnpm_publish_time":1670197317917},"2.0.0":{"name":"process-warning","version":"2.0.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","types":"index.d.ts","scripts":{"test":"standard && ava -v test.js && jest jest.test.js && tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/process-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"ava":"^3.10.1","jest":"^27.0.1","standard":"^17.0.0","tsd":"^0.20.0"},"gitHead":"992426675464d4165478d8a080770db5e263e51b","_id":"process-warning@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"shasum":"341dbeaac985b90a04ebcd844d50097c7737b2ee","size":3973,"noattachment":false,"key":"/process-warning/-/process-warning-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-2.0.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_2.0.0_1652950882799_0.5668469576371313"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-19T11:31:17.882Z","publish_time":1652950882895,"_cnpm_publish_time":1652950882895},"1.0.0":{"name":"process-warning","version":"1.0.0","description":"A small utility for creating warnings and emitting them.","main":"index.js","types":"index.d.ts","scripts":{"test":"standard && ava -v test.js && jest jest.test.js && tsd"},"repository":{"type":"git","url":"git+https://github.com/fastify/processs-warning.git"},"keywords":["fastify","error","warning","utility","plugin","emit","once"],"author":{"name":"Tomas Della Vedova"},"license":"MIT","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"homepage":"https://github.com/fastify/fastify-warning#readme","devDependencies":{"ava":"^3.10.1","jest":"^27.0.1","standard":"^16.0.3","tsd":"^0.19.0"},"gitHead":"57eb5f271f7f1b5c05743fdfbffe96ae40458caf","_id":"process-warning@1.0.0","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"980a0b25dc38cd6034181be4b7726d89066b4616","size":4299,"noattachment":false,"key":"/process-warning/-/process-warning-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/process-warning/download/process-warning-1.0.0.tgz"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fdawgs","email":""},{"name":"gurgunday","email":""},{"name":"ivan-tymoshenko","email":""},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"matteo.collina","email":""},{"name":"metcoder95","email":""},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/process-warning_1.0.0_1640700011252_0.06338313721771249"},"_hasShrinkwrap":false,"publish_time":1640700011396,"_cnpm_publish_time":1640700011396}},"readme":"# process-warning\n\n[![CI](https://github.com/fastify/process-warning/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/process-warning/actions/workflows/ci.yml)\n[![NPM version](https://img.shields.io/npm/v/process-warning.svg?style=flat)](https://www.npmjs.com/package/process-warning)\n[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)\n\nA small utility for generating consistent warning objects across your codebase.\nIt also exposes a utility for emitting those warnings, guaranteeing that they are issued only once (unless configured otherwise).\n\n_This module is used by the [Fastify](https://fastify.dev) framework and it was called `fastify-warning` prior to version 1.0.0._\n\n### Install\n\n```\nnpm i process-warning\n```\n\n### Usage\n\nThe module exports two builder functions for creating warnings.\n\n```js\nconst {\n  createWarning,\n  createDeprecation\n} = require('process-warning')\n\nconst warning = createWarning({\n  name: 'ExampleWarning',\n  code: 'EXP_WRN_001',\n  message: 'Hello %s',\n  unlimited: true\n})\nwarning('world')\n```\n\n#### Methods\n\n##### `createWarning({ name, code, message[, unlimited] })`\n\n- `name` (`string`, required) - The error name, you can access it later with\n`error.name`. For consistency, we recommend prefixing module error names\nwith `{YourModule}Warning`\n- `code` (`string`, required) - The warning code, you can access it later with\n`error.code`. For consistency, we recommend prefixing plugin error codes with\n`{ThreeLetterModuleName}_`, e.g. `FST_`. NOTE: codes should be all uppercase.\n- `message` (`string`, required) - The warning message. You can also use\ninterpolated strings for formatting the message.\n- `options` (`object`, optional) - Optional options with the following\nproperties:\n  + `unlimited` (`boolean`, optional) - Should the warning be emitted more than\n  once? Defaults to `false`.\n\n\n##### `createDeprecation({code, message[, options]})`\n\nThis is a wrapper for `createWarning`. It is equivalent to invoking\n`createWarning` with the `name` parameter set to \"DeprecationWarning\".\n\nDeprecation warnings have extended support for the Node.js CLI options:\n`--throw-deprecation`, `--no-deprecation`, and `--trace-deprecation`.\n\n##### `warning([, a [, b [, c]]])`\n\nThe returned `warning` function can used for emitting warnings.\nA warning is guaranteed to be emitted at least once.\n\n- `[, a [, b [, c]]]` (`any`, optional) - Parameters for string interpolation.\n\n```js\nconst { createWarning } = require('process-warning')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'message' })\nFST_ERROR_CODE()\n```\n\nHow to use an interpolated string:\n```js\nconst { createWarning } = require('process-warning')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'Hello %s'})\nFST_ERROR_CODE('world')\n```\n\nThe `warning` object has methods and properties for managing the warning's state. Useful for testing.\n```js\nconst { createWarning } = require('process-warning')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'Hello %s'})\nconsole.log(FST_ERROR_CODE.emitted) // false\nFST_ERROR_CODE('world')\nconsole.log(FST_ERROR_CODE.emitted) // true\n\nconst FST_ERROR_CODE_2 = createWarning('MyAppWarning', 'FST_ERROR_CODE_2', 'Hello %s')\nFST_ERROR_CODE_2.emitted = true\nFST_ERROR_CODE_2('world') // will not be emitted because it is not unlimited\n```\n\nHow to use an unlimited warning:\n```js\nconst { createWarning } = require('process-warning')\nconst FST_ERROR_CODE = createWarning({ name: 'MyAppWarning', code: 'FST_ERROR_CODE', message: 'Hello %s', unlimited: true })\nFST_ERROR_CODE('world') // will be emitted\nFST_ERROR_CODE('world') // will be emitted again\n```\n\n#### Suppressing warnings\n\nIt is possible to suppress warnings by utilizing one of node's built-in warning suppression mechanisms.\n\nWarnings can be suppressed:\n\n- by setting the `NODE_NO_WARNINGS` environment variable to `1`\n- by passing the `--no-warnings` flag to the node process\n- by setting '--no-warnings' in the `NODE_OPTIONS` environment variable\n\nFor more information see [node's documentation](https://nodejs.org/api/cli.html).\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","_attachments":{},"homepage":"https://github.com/fastify/fastify-warning#readme","bugs":{"url":"https://github.com/fastify/fastify-warning/issues"},"license":"MIT"}