{"_id":"warn-once","_rev":"359003","name":"warn-once","description":"Show a warning once","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"time":{"modified":"2021-07-13T08:43:56.000Z","created":"2021-03-09T15:41:31.241Z","0.1.0":"2021-05-09T21:39:43.322Z","0.0.1":"2021-03-09T15:41:31.241Z"},"users":{},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/satya164/warn-once.git"},"versions":{"0.1.0":{"name":"warn-once","version":"0.1.0","description":"Show a warning once","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/satya164/warn-once.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","gitHead":"514e9993ba7c1c113dbeda7242d5260cb4216654","bugs":{"url":"https://github.com/satya164/warn-once/issues"},"homepage":"https://github.com/satya164/warn-once#readme","_id":"warn-once@0.1.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"4f58d89b84f968d0389176aa99e0cf0f14ffd4c8","size":907,"noattachment":false,"key":"/warn-once/-/warn-once-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/warn-once/download/warn-once-0.1.0.tgz"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"directories":{},"maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/warn-once_0.1.0_1620596383201_0.21585308539688053"},"_hasShrinkwrap":false,"publish_time":1620596383322,"_cnpm_publish_time":1620596383322},"0.0.1":{"name":"warn-once","version":"0.0.1","description":"Show a warning once","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/satya164/warn-once.git"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","gitHead":"b012f9bbed7ecdf55fdbfd30824ac94924e45bbc","bugs":{"url":"https://github.com/satya164/warn-once/issues"},"homepage":"https://github.com/satya164/warn-once#readme","_id":"warn-once@0.0.1","_nodeVersion":"12.18.2","_npmVersion":"6.14.8","dist":{"shasum":"71eda54c88f240c4461e5c7a84cac2263caf3a4e","size":541,"noattachment":false,"key":"/warn-once/-/warn-once-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/warn-once/download/warn-once-0.0.1.tgz"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"directories":{},"maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/warn-once_0.0.1_1615304491131_0.4182483839876623"},"_hasShrinkwrap":false,"publish_time":1615304491241,"_cnpm_publish_time":1615304491241}},"readme":"# warn-once\n\nPrint a warning exactly once during development. Suitable for deprecation warnings, warnings for missing setup etc.\n\n## Installation\n\nOpen a Terminal in the project root and run:\n\n```sh\nnpm install warn-once\n```\n\n## Usage\n\nThe `warnOnce` function accepts a condition as the first argument. If the condition is `true`, then it'll print a warning:\n\n```js\nconst warnOnce = require('warn-once');\n\n// ...\n\nwarnOnce(someCondition, 'This is a warning message');\n```\n\nYou can call `warnOnce` multiple times, but if the warning was printed already, it'll not be printed again.\n\nThe warning is only shown during development, i.e. if `NODE_ENV` is not set to `'production'`.\n","_attachments":{},"homepage":"https://github.com/satya164/warn-once#readme","bugs":{"url":"https://github.com/satya164/warn-once/issues"},"license":"MIT"}