{"_id":"logger-clearable","_rev":"83-e235a03effe3965cc45f5527a07a0f75","name":"logger-clearable","dist-tags":{"latest":"4.8.0","next":"4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe"},"versions":{"1.0.0":{"name":"logger-clearable","version":"1.0.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","opencollective","flattr","paypal","bitcoin","wishlist"],"config":{"patreonUsername":"bevry","opencollectiveUsername":"bevry","flattrUsername":"balupton","paypalURL":"https://bevry.me/paypal","bitcoinURL":"https://bevry.me/bitcoin","wishlistURL":"https://bevry.me/wishlist"}},"author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=0.12"},"editions":[{"description":"Source + ESNext + Require","directory":"source","entry":"index.js","syntaxes":["javascript","esnext","require"]},{"description":"Babel Compiled + ES2015 + Require","directory":"es2015","entry":"index.js","syntaxes":["javascript","es2015","require"]}],"main":"index.js","dependencies":{"editions":"^1.3.4"},"devDependencies":{"assert-helpers":"^4.5.1","babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","documentation":"^8.0.2","eslint":"^5.2.0","joe":"^2.0.2","joe-reporter-console":"^2.0.2","projectz":"^1.4.0","surge":"^0.20.1"},"scripts":{"our:setup":"npm run our:setup:npm","our:setup:npm":"npm install","our:clean":"rm -Rf ./docs ./es2015 ./es5 ./out","our:compile":"npm run our:compile:es2015","our:compile:es2015":"babel ./source --out-dir ./es2015 --presets es2015","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"documentation build -f html -o ./docs -g --shallow ./source/**.js","our:meta:projectz":"projectz compile","our:verify":"npm run our:verify:eslint","our:verify:eslint":"eslint --fix ./source","our:deploy":"echo no need for this project","our:test":"npm run our:verify && npm test","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:release:push":"git push origin master && git push origin --tags","test":"node --harmony ./test.js --joe-reporter=console"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"gitHead":"2272012d4581602888ce601fc0b6a0ca202967e1","_id":"logger-clearable@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"bevryme","email":"us@bevry.me"},"dist":{"integrity":"sha512-KYbqxH81wDr8VIwbObGHIUMMSWBL++KB+W9nnbTh+Z7/36+HQXD8dnxb1e4n91lD9qoiYKzbSuuXTQ8/pNrBvg==","shasum":"f7a841eca722c5c9a95fca326994e6ea6323e87e","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-1.0.0.tgz","fileCount":7,"unpackedSize":18964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbWlP3CRA9TVsSAnZWagAAJ4gP/0ozJQHe6HkAxSYJWzQi\nCFJOv6idLUvW+2gnn+2kQpEEdyZEM51wC2tC9ubQc+FzHTrYrLnOrQ4tSn0c\nPewkOA8NN57LgIVqUVHscT8U7eKJtS0zIL2Fmc0sRcPYJfi8qCoWDnEUHiF7\n13T+qBquKDg4cnjBdYf2uwtfSDBSkfJJWc+mp3uhF1hdmWDLf1yLsFC8cFSJ\na9S2fOMqX4wjKx+jS4+CnjxEXe8yZsBfBE/yLZaDCM0jzSky+DjpYwgs+qbl\nKoYUJAgAEhdK82XzSzPTSECAJ2MJBSiiJTmC3bpjlqFYBgDQt06Kt+rWgarC\nEuCKxbgSxhaOT6pL8uCvBvVzZ4u3EHUsbTyrVQornaeqAs8I/JSVbysfbntW\n/H/SV+gqxzRae4knLzpC9FjRWk3mo3a42Xs8RLcehVvKughxQZmabSQtkCFU\nMLO3i8VW1sxtsMdyjd9kRFbFGEyzDq9Mz3PnVNqKDFp1s8clgaWy3+TFv+Ys\npXx6QfjhR/l1JnQ5SzpgzqXXJTQMpw3RCY4PC4KMK4Av812UbdmvfBex477M\nHCtGQx+OW9k6UtuAGBLiiiPAgHPzhlqhFteIfb6W6W+Wk2MQtbErjH42tOxw\nqRJwBlT+YHQ9ACguTuq+cH/sB9kLuqNMawi7x4X00CwYUhQpqxLvIYe639uJ\nki7E\r\n=X99c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwBK58aPpu5AmsE31jxvb2QYJy5HvpdUYOWQp56JoEjAiEAsXdT6NdvYx2N8fQ29v88Y1zARcOKGxSTK42lS67w9pU="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_1.0.0_1532646391833_0.906489650055849"},"_hasShrinkwrap":false},"1.0.1":{"name":"logger-clearable","version":"1.0.1","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","thanksapp","boostlab","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist"}},"author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 11","browsers":false}},{"description":"esnext compiled for node.js 4 with require for modules","directory":"edition-node-4","entry":"index.js","tags":["javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 11","browsers":false}}],"main":"index.js","dependencies":{"editions":"^2.1.3"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.2.2","@babel/plugin-proposal-object-rest-spread":"^7.2.0","@babel/preset-env":"^7.2.3","assert-helpers":"^4.9.3","eslint":"^5.11.1","eslint-config-bevry":"^1.1.1","eslint-config-prettier":"^3.3.0","eslint-plugin-prettier":"^3.0.1","jsdoc":"^3.5.5","kava":"^3.1.0","minami":"^1.2.3","prettier":"^1.15.3","projectz":"^1.7.4","surge":"^0.20.1","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:npm","our:setup:npm":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"348783d532f97063c7a3116b93c05c8a43cbd9ba","_id":"logger-clearable@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"bevryme","email":"us@bevry.me"},"dist":{"integrity":"sha512-c7n9suDQ5DBnQYQKU6RAO2Q3lNQ7YpXzUihY268wOMRsFvqNkTpvv9EmWRK9Kej/zujfN24+OZ8xo+Iic9gJEw==","shasum":"eecc67dac0036fbf042576f02a58ba9a687d1827","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-1.0.1.tgz","fileCount":7,"unpackedSize":24618,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKv1MCRA9TVsSAnZWagAAQcUQAI/JzxzToQjm3hcL15G2\nGoMNbVJdDLmSztxRZ+HfyWzHIxgwQTEnwOUK0wpLq1MydxX3gXSKGm9xP/er\nqUvM4scQMeAZCv/B9hMSjFSdQxmjAYs4x6UC+KpNxTzhGy7cdtCdwVGPuDD1\nzSO3ok0P8eFRl+2g2CkDK5bvs+Yr8xbW0Wk8E9Yup5csI5ESr7A3HdXr9g8C\nuGG2hBJjWCIZh6D488X/gdHCBv2HWkKEiikwEuI/JdTDt4GjhPlxMB1uQKfw\nKCrFVC5SwoS26j8vEBAf/qzgO+ANRuCoqBa9dB9peE1UiwA2Cs0BPLJcjB6y\n9TlkwXrNhK1OTVrns7RlMjuG9HLYYcz1wvFx7j75sR5VPcyYX+hqSVBdGFc8\nSNCXrYreZ/pko6snV+EQYuCi+Z/VWhKPe46heYycmtMpSUmUVN4lSgLgxCQB\n2veXGQQ1c3aEb7cM+tCTwciGkFIzEU8iQhDEoqdaIL2peyTWWKMAzPax5dQ/\nf7G8FEyPqu7oYi2BjF2cKMexNawEPXGoL84oRFsd4HNU+GCFfMaD1kox5u9A\nOFD5nTw0yTa8KP+pVm9JuM+MU1vHdg/o8TNghTUKMs8LJ2itHjKD5hZKzzbE\nOwyra/mFv3cbJDuFZnbhFUMUTfDtXJhBUvZByawbpK758sePCgWNjUV6mIPA\neVnY\r\n=lpzU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBeVFGsBhn1RNbb7J9g8CcN+Aaw1JmStm7cn0qqEAdPCAiEAl0YlsBPWohqYBvKxGH4+aQsJaFNLwoedpepcXOB2WSg="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_1.0.1_1546321227530_0.6580937321516647"},"_hasShrinkwrap":false},"1.1.0-next.1573628243.2266d4cf033c3be3031e5585341232d79127de8d":{"name":"logger-clearable","version":"1.1.0-next.1573628243.2266d4cf033c3be3031e5585341232d79127de8d","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for node.js 4 with require for modules","directory":"edition-node-4","entry":"index.js","tags":["javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 13","browsers":false}}],"main":"index.js","dependencies":{"editions":"^2.2.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"4.10.0","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^3.2.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"2266d4cf033c3be3031e5585341232d79127de8d","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Require: <code>require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.js</code> which uses <a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a> to automatically select the correct edition for the consumers environment</li>\n<li><code>logger-clearable/source/index.js</code> is esnext source code with require for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is esnext compiled for node.js 4 with require for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n``` javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n\tif (method === 'log') {\n\t\tconst date = new Date()\n\t\tconst time = date.toISOString()\n\t\tlogger.log(time)\n\t}\n\telse {\n\t\t// the above will actually call: logger.queue(() => time)\n\t\t// instead, we can use queue directly:\n\t\t// using queue direclty is more performant as\n\t\t// any setup for our particular message will happen only if that message will be written\n\t\t// this is applicable as logger won't bother writing messages that would be cleared instantly\n\t\t// e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n\t\t// instead, logger just skips writing 'hello' and will just write 'world'\n\t\tlogger.queue(function () {\n\t\t\tconst date = new Date()\n\t\t\tconst time = date.toISOString()\n\t\t\treturn time\n\t\t})\n\t}\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n\t// stop any more calls to logger\n\tclearInterval(timer)\n\t// discard any logger queued updated\n\tlogger.discard()\n\t// and clear the log\n\tlogger.clear()\n})\n```\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@1.1.0-next.1573628243.2266d4cf033c3be3031e5585341232d79127de8d","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-hNDRcKy2U1gOVuJWrwdhyO/ncFJH8SGJS4XWodDbGGRtApZrp090PWKKXsaay72Ka9baOmpx7z+m9dF6GYm6DA==","shasum":"b3134db7c68b291295a7ecfec9e4a3531d39425c","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-1.1.0-next.1573628243.2266d4cf033c3be3031e5585341232d79127de8d.tgz","fileCount":9,"unpackedSize":24380,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy6lWCRA9TVsSAnZWagAArR4P/11K8rzG774eQk4dPvrk\nxHCsuS8bIuGPlkHZSHzm7FTu5ScR39bqKZTy8ed9/J4RckrO7+0o/cmyzUWV\ntuKC5I/ELoy9PU9wUP5bISibWGC3ZbfFligLSD/Tanlx9A0ufpXIx0unqyu/\nV0YdEK/P9Fy30Gev5SASn35X+KK7t0du2dCxZv+uCZB0iqOvpHCDuu7aKndL\nXcP52PLsAwrq1aRoASrQAe/PnozgdFF/eNeA4OA3NDSSvC7cohDnBCIkKkyF\nZbkjcyxSfoQXYz1dYb1wrJeMCJaBFhskzQxKUxNHwCLMR/1dAIMK8Fbv5C/Z\no71y2q8uB14hdC4tKsGaTm9aX+o4QQbkcvTwD1WE2Q0AZfhwaRNFauuL06bB\nKU/otofcR4t1pHmY/1bvEzWsNX4YVvwGqpaZ5OSqtHPb6+cF+rpFVEKHkS2e\nWvedu8REFdjC+jaoP/hXE7Wd0RsrlQD/xXjihIjwd0uUNX11AwhfD49AFRiG\nhkTW9vLdvIC18Tr2Wx4FSHbB/8+q/G/h7dv3acz2Pz51VhXGrVHTfVmnLwkX\n2qoJILvY9C+H1HI+9rrGLnmWcBirlSxSpkNezSIvw9Au5SQcryEjFhcm75Pr\ndM6WoETHvyS97r6byCtt1CXOSKaqNSGzJZBhfgrcuPvGP+qO//LOMpqYCvmD\n2+J0\r\n=woko\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLWEvh3ZVpMoKUHqBcTP4w3gkbBMM2fvXvbmdtM7PcbAiEAod/Yw2uB9RrWa5Yvjs0ARCef/UJmGA91ufTWi+juu4g="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_1.1.0-next.1573628243.2266d4cf033c3be3031e5585341232d79127de8d_1573628246044_0.6039334832855288"},"_hasShrinkwrap":false},"1.1.0":{"name":"logger-clearable","version":"1.1.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 13","browsers":false}},{"description":"esnext compiled for node.js 4 with require for modules","directory":"edition-node-4","entry":"index.js","tags":["javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 13","browsers":false}}],"main":"index.js","dependencies":{"editions":"^2.2.0"},"devDependencies":{"@babel/cli":"^7.7.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","assert-helpers":"4.10.0","eslint":"^6.6.0","eslint-config-bevry":"^1.2.1","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^3.2.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","valid-directory":"^1.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"gitHead":"2266d4cf033c3be3031e5585341232d79127de8d","_id":"logger-clearable@1.1.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-MBgi3zApSdTbXpcuoOXt/JVy5sc3smMe39cDUjj/nKl5dEicRbx2MWk1KIbqaxmatrBj3jdQp2cN8Wf++0uJOw==","shasum":"17f5e71f7bfe371975374e97d417c5194c6f3aac","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-1.1.0.tgz","fileCount":9,"unpackedSize":24323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdy6mpCRA9TVsSAnZWagAA47AP/Rb2HusfK2Li8wHq+wHT\nv6iU3w6HAEJkP9JWI58aYU0c9MIkGmlDRmHzZfGFOP4zdg9KTtHbYkWtAxlL\ntgUxYpwJrpFTdzo3DMRqBNGtdHtkpC3L9XV1VH4QFlwpw2QN9ExFQv4mHTgx\no4VLxYdttC68aoFTIS3kqxpJUSaJwC6IK2+Gb8Pu2Y6Qa8pxs9+J63vr8ZQy\nsQKd/mw8keb+FHw2k0g7NruI5HgYY6SdYy9kbR73oIChA03Ga6O8tKl0zVbl\nQj5Gxdnyr9t7mS6Jq+2aBVDJkpFQsgzeE7yTMet95vgnb3AWZBVKfQ0WGAs+\nunf8ngQM8JJfdyYoj6pfjb6onzmoZ0FdIzSaBhDDshohZ4f6SItP3YI/0fhA\nkllLNp+vDaxzQqDwLVaUIbmPkwGDWbftalyzmSYShlgXjrQOi/YF+fk5n89H\nKDKgbbartTapY5lUrmeN0pvcRi6cEsoqkGqnXghSayS5EzbWXCa51PtG9yEM\nnuZhkzTehjJ9QyXo+fEWP23XcI1PaE7DZgsJWsjL4o/f9AHQo1p2KOSmBBLa\nceorqbt2EIeV88bCWXDwwPAN+r4ORaEz/ODpgkiLaV/5tnFGVbES20HUwNIP\nnEIU92nNsPBdaePJU9iav206r9l2WX3CHpfF77z5JXCObwt/R24tT221aONO\nLF6f\r\n=Mojx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA/M82IGve/vIwk8PqhDfTzikrLRDhBiOs73KnbbyhyVAiEAiZirXrElixdiD/lfWyjG41sztF3Qe7V3Gujq8Z0E0sQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_1.1.0_1573628328550_0.08876807732155889"},"_hasShrinkwrap":false},"2.0.0-next.1574054360.c020911294bae9df80f60d5540f725dcf22a212c":{"name":"logger-clearable","version":"2.0.0-next.1574054360.c020911294bae9df80f60d5540f725dcf22a212c","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"main":"source/index.js","devDependencies":{"assert-helpers":"5.4.0","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"4.0.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c020911294bae9df80f60d5540f725dcf22a212c","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Require: <code>require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is esnext source code with require for modules</li></ul>\n\n<p>Environments older than Node.js v8 may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n``` javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n\tif (method === 'log') {\n\t\tconst date = new Date()\n\t\tconst time = date.toISOString()\n\t\tlogger.log(time)\n\t}\n\telse {\n\t\t// the above will actually call: logger.queue(() => time)\n\t\t// instead, we can use queue directly:\n\t\t// using queue direclty is more performant as\n\t\t// any setup for our particular message will happen only if that message will be written\n\t\t// this is applicable as logger won't bother writing messages that would be cleared instantly\n\t\t// e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n\t\t// instead, logger just skips writing 'hello' and will just write 'world'\n\t\tlogger.queue(function () {\n\t\t\tconst date = new Date()\n\t\t\tconst time = date.toISOString()\n\t\t\treturn time\n\t\t})\n\t}\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n\t// stop any more calls to logger\n\tclearInterval(timer)\n\t// discard any logger queued updated\n\tlogger.discard()\n\t// and clear the log\n\tlogger.clear()\n})\n```\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@2.0.0-next.1574054360.c020911294bae9df80f60d5540f725dcf22a212c","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-refsq8ZQYAV0lYn3V3+3Sg+UnumZlQYUH8OteBqhCkVoTs0XVmN7UXR6j52UUHVJpimhWfuBQ47NN+j9srFusA==","shasum":"3b3776304ecf9823789deaa1b15d952ab876fed4","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.0.0-next.1574054360.c020911294bae9df80f60d5540f725dcf22a212c.tgz","fileCount":7,"unpackedSize":18737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0inaCRA9TVsSAnZWagAA7gIQAJccpDtrRWOxTKy56pgR\njdPWHYYu0ro5ngJuUQflPrzaGdLtUEJ3mqKyaQh3pWmDJ+sr/ghHhC/XYR5f\nzp6iclrghp8f8zqEPx8wfmcPfWjuR5b34W7+fNmlXS6j1yvj8sKuYvfYsaYj\n88YgF/9RAhnHXSnwJRGJpv8D2PQLODw8cViNMbENO4WCp5mij0fz2nQI2VtQ\njukfElVz2Dh4fEmYFsyKnw2zUo7pY7snkM9guBGnCSeqJzFOqRCGEfRbvink\n//Fl/aYp/ysb9KSsypc5dHo829g9SBqCk9RAVvT3unysS8vqvQUAL+HnO66R\n0byfuvmnMwZYnJuQkxVrLA/BV5uKBn2Z81EE1UaafvLjdJscUdDs479g2iCZ\npqPS+6DCIALOBzp3Mx6QmtTHt/o64NT38Ooq5XNlD0ESJmCpB6M9jQDlo5gE\npW9YiiHtzNWyr80vP1ngZJe8sCKWvkqJhd5OCeIRULtiANDf5GnHin3P0CYz\nFvReGfr55X9vgLVflr/IwRAPB8I+yzTrmAGy2Bj3LeQANhG7v//HWrdhmSFI\nfOvoSkzW5/aJciRZEn6v9U77EqfjIyGWzYkXNV8FhUPr38JoPqbZEfQ/8JSl\naUDFdO4zaPr8qhsR7H9jbRrG42v7+6v7/a4W5IxqzUKWebJzrKqE9fhCe0Tw\nkodg\r\n=4HCK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWTt0JDlayzbQPutk7H2DjedllputC1pb9cRBo5x6q7AIgckUhpExE3YyJHTQjY0bcqqJiNhpOITDEcbiguohpEGU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.0.0-next.1574054360.c020911294bae9df80f60d5540f725dcf22a212c_1574054362024_0.9161340002299803"},"_hasShrinkwrap":false},"2.0.0":{"name":"logger-clearable","version":"2.0.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"main":"source/index.js","devDependencies":{"assert-helpers":"5.4.0","eslint":"^6.6.0","eslint-config-bevry":"^1.3.0","eslint-config-prettier":"^6.6.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"4.0.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.10.0","surge":"^0.21.3","valid-directory":"^1.1.1"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"c020911294bae9df80f60d5540f725dcf22a212c","_id":"logger-clearable@2.0.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-Q4o0J16ePL88WpSNg9VsVIcAO5Gs32DOVGlyHYS3BiE+z6nTy+7r/iLA7hG4WoVTU5UIUgocUNlAg59rSgjt9Q==","shasum":"cc55fd0b4055fe229ed5c1d95905672871b25bf8","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.0.0.tgz","fileCount":7,"unpackedSize":18680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0ioYCRA9TVsSAnZWagAA8ukP/3uGhq1gj/Blf63UWaxn\nxpEYulqgNWpBeG1azpY3mLf2NRyzOR1UZ+tYneLF5JTkWZ7Ls1ocLoJfQPhV\nRT83dbY0SpJItaAMfNQRB13Z494nd1MQ3OMsy1b2yyqvb8t6ye7jRnLOujub\nqHIAFZfVkJ84WeiYfOCCBoJtlHwI7+vcQzK6SDGr0B6m0IUd6a+7ol46UuA+\nZ+Gq99xWzWCPEi6daWLwJ43qbmPp/uYwGPXqn0GTI5WeloygLRrnMRqIfUBU\nBPYUFDAB6WHGoJe2hzsr2Oe/sD02dVKDwm2STmtI0TUsbq1vkgQwKoM6zC5P\npVlsOQvJGgkUOYUcy3fQcSRDO11XcFhM9xV7iMlM+s3Y7cvD3Qo5KEk8AD22\nJzEuAbLhhSRGAs9Tzk8NYI4OpN67UpMwxoXb3200ugGtiRUPb4v68HPe1him\nBP3qoLVo7LWse0H5lFaYwV7P4r5vTr+HLQ+U04oNMigP4eCRhWf3cwq7vjkD\nULS957a4GqjpdnJfRK2NvxMk42YpsVZx8yFbDYIRWFlCrqEJQHxszkdG0c7r\nXd72gln1xlAeZmvRPT12cOh31ZARGUyRpJ1H2SxBrl0mJYXTHycrYPyKMXYt\nqzqn8ByAO0sr2radYXIU/a2MrCNo4cnLEkIhRxJLdrD2b4CwjuFqvgNiT8oQ\nZxDA\r\n=W4jM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhdkN6qhSLGEIM4Fubp9lWeeuCF3l6CKM1m1055dvYNAiAmLFNJ1kfbXvDXdZbvsTKE9rJRH152Pa0sQ9fz+xklqg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.0.0_1574054424280_0.09215706658602629"},"_hasShrinkwrap":false},"2.1.0-next.1575152252.2e9457164e8dfa42e73f239e10913fe19669129e":{"name":"logger-clearable","version":"2.1.0-next.1575152252.2e9457164e8dfa42e73f239e10913fe19669129e","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"main":"source/index.js","devDependencies":{"assert-helpers":"^5.6.0","eslint":"^6.7.2","eslint-config-bevry":"^2.1.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^4.2.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.12.0","surge":"^0.21.3","valid-directory":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"2e9457164e8dfa42e73f239e10913fe19669129e","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Require: <code>require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is esnext source code with require for modules</li></ul>\n\n<p>Environments older than Node.js v8 may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n``` javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n\tif (method === 'log') {\n\t\tconst date = new Date()\n\t\tconst time = date.toISOString()\n\t\tlogger.log(time)\n\t}\n\telse {\n\t\t// the above will actually call: logger.queue(() => time)\n\t\t// instead, we can use queue directly:\n\t\t// using queue direclty is more performant as\n\t\t// any setup for our particular message will happen only if that message will be written\n\t\t// this is applicable as logger won't bother writing messages that would be cleared instantly\n\t\t// e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n\t\t// instead, logger just skips writing 'hello' and will just write 'world'\n\t\tlogger.queue(function () {\n\t\t\tconst date = new Date()\n\t\t\tconst time = date.toISOString()\n\t\t\treturn time\n\t\t})\n\t}\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n\t// stop any more calls to logger\n\tclearInterval(timer)\n\t// discard any logger queued updated\n\tlogger.discard()\n\t// and clear the log\n\tlogger.clear()\n})\n```\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@2.1.0-next.1575152252.2e9457164e8dfa42e73f239e10913fe19669129e","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-Sw2XG/ymmSJVeRIE7piCqt8rbiWbB+p9/KRw5lMMPH5x4a/mLvOpOyPGfmeHlBwBBSYbYRjTczz0csqjXGODug==","shasum":"78ba7bd5abc23c7b823058d2d15fcf7a5ac3670f","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.1.0-next.1575152252.2e9457164e8dfa42e73f239e10913fe19669129e.tgz","fileCount":7,"unpackedSize":18941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4up+CRA9TVsSAnZWagAAtdMP+QDpcwBkvjX96JSpH7yf\n5ODVtNL7EjFg28dSlBoQ+VWvRp+oH+Luqpcx1d+JzUG5XeueaO2CKtdia4Wb\nrPfVq3NXJ69ivr+UZY4Axfo0oUxqu1R0inUu4gkk4eC5mH2vzfDQVDGPzor/\ndfja4ZrskSy82APhdvPpQDB+oLw7jT3FSVZYX+KaU0cjy60CFR02w3Pm28m5\nK7gMNvmEmIh4Kd6KT9EecKhHFJAtpr7IPTnIryU/oGTUnGFmEyUfb03ZN6wd\nDO+Q894uxHUvv3jdvZtMaZIS8FzFdgbGHtWG/czxmuc6OH/ZclCLjpwUpPBb\nzPve9Ft6BP9dXtoN0FCXAY5XQDSE/29m9qKV0P6XwSktVBpaskAyDvObPca9\na7o0Gpn7Iexr/7JA7l5Lrs3Ul44Pt9mRFyojRI6hbV3KJO/jnwO3b7FEJIdw\nDkUiO+7ITdOqTD42EqioecXEl5trl+hBCMkUzJx9CrN4e8RDtyrUzecv/M2E\nNItVXqjmUlDmpN7Sqx4gy5CSim+kXxLrpD+Qe18uHUsGA4Zm3H3f0MO/OZrA\nd2XGjIb0yWrS3AAHJF/rcZ+hH6UQhH7Nz75jXovKso+XR9MWr/al0PwgYaOX\niXPjBQAuc+VTBppDXQ4gvFNXds/vf5C7OkGVdSHycPbXp5XWpgdnnU20vYQp\nzUlS\r\n=b9QI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvGzPWUFDJIG7Oi9sSuZdTul9zf4336C6ivx+4R+vP8QIgIWbEgwYflUD7mgbCnkjC8sj6YKjwd98241oK6ZvZXi8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.1.0-next.1575152252.2e9457164e8dfa42e73f239e10913fe19669129e_1575152253961_0.7358822956535873"},"_hasShrinkwrap":false},"2.1.0":{"name":"logger-clearable","version":"2.1.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"main":"source/index.js","devDependencies":{"assert-helpers":"^5.6.0","eslint":"^6.7.2","eslint-config-bevry":"^2.1.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^4.2.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.12.0","surge":"^0.21.3","valid-directory":"^1.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"2e9457164e8dfa42e73f239e10913fe19669129e","_id":"logger-clearable@2.1.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-uNk/voEiVnRVLFgJ88tecJ2DZSEawfKcta5fYc1sc+p/FTF9LA/Wx8z5d+UXaV7bNMPbWGIttxQXOCtvhHAs2Q==","shasum":"875501d3d806c40f61c174e094bbc9684ccbd77f","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.1.0.tgz","fileCount":7,"unpackedSize":18884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4urICRA9TVsSAnZWagAAQEgQAJEiZMZjivK1uKj/Iw81\ndJ5zlnw0VUObJVAL/0ooksjmpQYMw5Ftjfy1e9AegqUINY6APNf7wpxK6wVA\nfd9Fq5rT/wLWv52mrafWIWg0HGutn8DkugVysX7HOGjWNCRBSXACn2ZQY/ir\nfeYXUlt4UITiIo72m3KIew/e0URf9L1Ag6V7g/aUiW4ZXMfsjy6zv2NwwY4B\npSke3NmmLAezuTryW5okwsOQrYjrSvG/M/UpQ1ce/AHMS8eX63DTgUa3aJUH\ndzz8pnY1MV3iiV7652/nO0FE1ZfPFJt5qwD8jDv7Imqgvu+6LwasPSqEU0VX\nLTxGSt6+accIUJzMGPozzdyq9K0+emrODJG0dAAi110EukQ7a5dnMlkG3abl\nyUXSUV09U2+NIMzjGJyGRUvRDaZxONnN+Jczpmir6A61oS5YAcKjPSGAZJxs\nT7PtT/aZL+7sm7z3LIA5wwSnb9DCwYPj0CH39mWOAj34IGf9RTDJr8v5o0C7\nbIi06DNf9TUnQgZ0UEU9pwaFQCFkF1DQpmpqc4sidXCF+Q9Mn4/CNWk42AVS\nnKz1eBBhOvBuFnYkebxTXEq3gZCq5beAc43ks2dRHe5OAtv+ijNw6EjMNF6V\nc8ExL1I7iMPxczlYbhVFueuMqP59XOEid3iiTWddFOGkbQtzqITxkVyVICSS\nknRA\r\n=Pt8k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHWHPYoMp5jS6GdUdXprqg1kPUychwtni0s6m5iI0XZAiAks+k5ZsQFlfh8Elu+/GZzFMRGMOOWi2YjUdvl/PejGg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.1.0_1575152328397_0.005306286283599748"},"_hasShrinkwrap":false},"2.2.0-next.1575216947.ec8b0b19be1d50323346c2fdfd1f56fd8be36213":{"name":"logger-clearable","version":"2.2.0-next.1575216947.ec8b0b19be1d50323346c2fdfd1f56fd8be36213","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"main":"source/index.js","devDependencies":{"assert-helpers":"^5.7.0","eslint":"^6.7.2","eslint-config-bevry":"^2.2.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^4.2.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.13.0","surge":"^0.21.3","valid-directory":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ec8b0b19be1d50323346c2fdfd1f56fd8be36213","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Require: <code>require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is esnext source code with require for modules</li></ul>\n\n<p>Environments older than Node.js v8 may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n``` javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n\tif (method === 'log') {\n\t\tconst date = new Date()\n\t\tconst time = date.toISOString()\n\t\tlogger.log(time)\n\t}\n\telse {\n\t\t// the above will actually call: logger.queue(() => time)\n\t\t// instead, we can use queue directly:\n\t\t// using queue direclty is more performant as\n\t\t// any setup for our particular message will happen only if that message will be written\n\t\t// this is applicable as logger won't bother writing messages that would be cleared instantly\n\t\t// e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n\t\t// instead, logger just skips writing 'hello' and will just write 'world'\n\t\tlogger.queue(function () {\n\t\t\tconst date = new Date()\n\t\t\tconst time = date.toISOString()\n\t\t\treturn time\n\t\t})\n\t}\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n\t// stop any more calls to logger\n\tclearInterval(timer)\n\t// discard any logger queued updated\n\tlogger.discard()\n\t// and clear the log\n\tlogger.clear()\n})\n```\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@2.2.0-next.1575216947.ec8b0b19be1d50323346c2fdfd1f56fd8be36213","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-akqS+ueff05ZZzOOBEzaDMPiHSCVaCsvqyk+B9Voh1MrDp3ftUlKmXiU58qo7EbHVLEBkoTcxuvqmrwqVh7W9g==","shasum":"63747aa4bdf878c1ab93ff0f2349f481cf6d9701","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.2.0-next.1575216947.ec8b0b19be1d50323346c2fdfd1f56fd8be36213.tgz","fileCount":7,"unpackedSize":19146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4+c0CRA9TVsSAnZWagAAKnAP/2XsGr1tCWAR3O6bU/kk\nBWezVNwE6QcbSCnzijJh5TMwrT17dQ14zrqTMcC2mvHN1862okrOOZA+HSKu\nJKRygPf+NCd5GakzNuuIW5B/GyYFkn7isboBszpNdsNJ15qnmuZif5O+PbAp\n+7/0HqsC60OLARlZ1YR9Doa7AYCYGTh62UAgU3pnRvxWMhfgezTifuqeC72A\n8BAg5fJrkWUl6AVYU1X3Krmog0euusrAP3UwN6rf0ogUE1elkNpDatTcxbTK\nEgV18Lki4r2chF0cQX/E2she/getkGFYduYDuCUENjqqQ2nVJ0YX0G1cPAIU\ncvspu+ZOIR8tzAzaY/7j5ZSKYMT8+z2lxGNzYcqWyxcqT0TCfKFEJhA2htWF\nSNU2KPNG4bDAXQrd+V6fAoOKTP/3EnF9CKKcuNZWblvm/TW24r+7LsM83hEi\n4yz8HswL/iAix7etwq/WGMLvUcky2Sj8Eg3OhhndgDKjhM34Rd1fBBPVaAXX\nEcgLtyrWC2M9G3jT8J1XhDYTBKvmCP4ch9TCNXprD2wCq1TwK1wvANkeNmdE\nQmlm+EcUqBDFbCNSVWwkQ+q7q1XufJHGF+DJ3maWswqowduAKCPKBqXXs8ec\n9/AHCwYyMTcxiLlbDKY+Tnl+PIsac8aIdiIBOvQB1kkfCZLY9HJQhWOAn874\nspA+\r\n=AflC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrZHSHzLDLP8nOfLlxumU5Cso7YySMNwkM4xOPIPzSDQIgSMVn2xe+WM1Us1xS9CZvHV6tFUtagiuv60kKJTsOvjw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.2.0-next.1575216947.ec8b0b19be1d50323346c2fdfd1f56fd8be36213_1575216948542_0.7491137297963393"},"_hasShrinkwrap":false},"2.2.0":{"name":"logger-clearable","version":"2.2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"main":"source/index.js","devDependencies":{"assert-helpers":"^5.7.0","eslint":"^6.7.2","eslint-config-bevry":"^2.2.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^4.2.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.13.0","surge":"^0.21.3","valid-directory":"^1.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ec8b0b19be1d50323346c2fdfd1f56fd8be36213","_id":"logger-clearable@2.2.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-xJRlEwA7pPVsP3nOM6+wTZ5bitD3Ys/UufmviEW7TsHUj9J6m7uDYwWfVGCi4se5KGpldL0lAdmXolLJDFWW/w==","shasum":"8ebcd5142913e515a74c14a72776b52cb907fde5","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.2.0.tgz","fileCount":7,"unpackedSize":19089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4+d4CRA9TVsSAnZWagAAhkMQAIdEd75Ksk/ZDInXzIzs\nu3wnMIDncsh/fLY8dwIIENeJhXml6ejK2ExwLraFC0whF3nt/FQfhpkedI8J\ntDNS/KX8+UebBFzZavVFAzTdPd454wFu5D1O6vqscES+NOy0Rghm/JsM5bk8\ny3EuskmjGnAOZ6TD+3uC+hT+A0R+l9c4+t65A75C3OVWrdB8DKHPr6ziQxmx\nTBXu7sT16eBxPLSTZv/n56mS5V48V7VeF7cuFu96yTkp+x5qTGw9d+sJ2isP\n5Drihv4Oi9X1fAFnNOXOdhXwXf+87FwIeq8HtkyyTWN9tnvxWWc9d+UPW3EZ\n6Wrw8zJAOcYYzGsFimmZQrKdM9n9bSev1+3M+gewb3bnUQZaMHzln0Gvqmaf\nGyjJPJ+bT0vLBkPbT6ERoQNePlOqLq5XbPRwR8KCB76KaIJXGGWfFG80R4OD\n8+QCKLvQVeLefxlsjP1TIQSB7MP6uwPovx6k9car3uR97kzka0P58/lTZoOG\n+w9cv0SY8jagNued+/YUQGrTmXtZ1SMceRd0g7TPQwUJb7F4ZQFBjYXQSZxv\ngNnHUJefTo+vUqfzoxV6NgTrHnqzkMbGtUYNy46BFFtecJWAFlA9iX6fNvha\noRKDnPmeoGyVdhPWnPjblCC+NlpPny6fekMh3rin5HIydVkVxgePmioBaUa2\nxw5B\r\n=7xxH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYPpe6eFpx+FyjGICLf9m5yrwGStN/Ld3klWu56J2NPwIhAMAMTCykpwcFUiqRNY71fPb421PwugLlTET5r8FyZGx/"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.2.0_1575217016572_0.1690503767512923"},"_hasShrinkwrap":false},"2.3.0":{"name":"logger-clearable","version":"2.3.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^4.4.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.15.0","surge":"^0.21.3","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d153a205ca18f5b3b55e886bbebe476e794435af","_id":"logger-clearable@2.3.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-Bb4oZgR7Jv+ru2xx6tQ4TpQRB5wtOjOvnzjRY8bwAwPaX3RDcTY0jdjZZjnFaQYN5nrpCOGOKvEt80NnTSa6rw==","shasum":"946146425a793cd82ddbbefa979c5bbee8623dbf","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.3.0.tgz","fileCount":7,"unpackedSize":19931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7o1tCRA9TVsSAnZWagAA03sP/Axgb27rf8Z+6cm+KnrJ\n+h/ERVuUNFM7ojrO1OUnyHGO+DACS9XGz5d1oQ3cz47HmBFo+tsrgZlm+sa8\nhD0ZgQNVekh79pIvHDZDcqIFFFyK6WbMPU9hQhglHZjEfcjTdboYgLbm1gmb\ngImpAEJALlBr8sdQDUgTWyV7JsrV9jZEiCOf1DLBa9qqwre6zQ1IfJYiVzVv\nSQ4jnfKALJD/Qrs04pm6TzLcJogS/ArKoO+E9n9C7BVPis1gARiUbCsj1Er5\nZMj+lEDSyiSlji7zGB451Yuqve3RU3aiHKB5cKiAvtgnoBFG/q+ozM0qtcuX\npt2cCibAN5LwEoVO4Q0hb7iRXGJ4w3APWhtE0NY7QvnRhTEpwJm3ujH4yrhM\nqMgWiRG6f0dLqFQ0agMdxCL5/l1KZGZfp4h5S+FaGvvanZdCgNI1qFb8+I6V\nTVC1pNbEJwMPb1zSGkF4lStU59L0xZ2C3JdRPhOd8T3bpn13b+7Nsh9xRTQZ\nvoKi8WDdqIkZEW0t4Ot0kMxqUfFAbNLNZMXIrAji+ROOKD9/Y9IxohjifTxY\nNhQbSAuvZ1dy1ECZiygT+NyNVCRfqmOHUlFXOA/MkB5Q6pNcRAt+FtYH1Mtb\nyEb+PKdlG0xo+zqVNCjWkqF8MvqNqarHfdhzUpkmSxJMpU1xuJBXTM7BUDE6\n6ng6\r\n=A9fr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFygIHh6qnjhYxf0VkwPLeS9JvObtIeokkm+B/zegpPDAiB++zVP5MdVjQUlSx7tXBEnbRO0x+sdKEcW947MC5T0jw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.3.0_1575914861089_0.43109164726153026"},"_hasShrinkwrap":false},"2.3.0-next.1575914912.d153a205ca18f5b3b55e886bbebe476e794435af":{"name":"logger-clearable","version":"2.3.0-next.1575914912.d153a205ca18f5b3b55e886bbebe476e794435af","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["logger","log","clear"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=8"},"editions":[{"description":"esnext source code with require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"8 || 10 || 12"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"assert-helpers":"^5.8.0","eslint":"^6.7.2","eslint-config-bevry":"^2.3.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.1","jsdoc":"^3.6.3","kava":"^4.4.0","minami":"^1.2.3","prettier":"^1.19.1","projectz":"^1.15.0","surge":"^0.21.3","valid-directory":"^1.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write ./source/**","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d153a205ca18f5b3b55e886bbebe476e794435af","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Require: <code>require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is esnext source code with require for modules</li></ul>\n\n<p>Environments older than Node.js v8 may need <a href=\"https://babeljs.io/docs/usage/polyfill/\" title=\"A polyfill that emulates missing ECMAScript environment features\">Babel's Polyfill</a> or something similar.</p>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n## Usage\n\n[API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n``` javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n\tif (method === 'log') {\n\t\tconst date = new Date()\n\t\tconst time = date.toISOString()\n\t\tlogger.log(time)\n\t}\n\telse {\n\t\t// the above will actually call: logger.queue(() => time)\n\t\t// instead, we can use queue directly:\n\t\t// using queue direclty is more performant as\n\t\t// any setup for our particular message will happen only if that message will be written\n\t\t// this is applicable as logger won't bother writing messages that would be cleared instantly\n\t\t// e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n\t\t// instead, logger just skips writing 'hello' and will just write 'world'\n\t\tlogger.queue(function () {\n\t\t\tconst date = new Date()\n\t\t\tconst time = date.toISOString()\n\t\t\treturn time\n\t\t})\n\t}\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n\t// stop any more calls to logger\n\tclearInterval(timer)\n\t// discard any logger queued updated\n\tlogger.discard()\n\t// and clear the log\n\tlogger.clear()\n})\n```\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"http://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@2.3.0-next.1575914912.d153a205ca18f5b3b55e886bbebe476e794435af","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-ZRLt8YD77ItEpA9LrB8AJBlMf20D+MekmK5vJg0kQBbRkoZDiL17TI9GOo/KfIl8JvpK93a5OXjPepXv+QsqsA==","shasum":"ac6caf423192a7d60e142d534bd02d4eb36d4bfc","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-2.3.0-next.1575914912.d153a205ca18f5b3b55e886bbebe476e794435af.tgz","fileCount":7,"unpackedSize":19988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7o2hCRA9TVsSAnZWagAAOtAP/jvCA9Fg96nEwgGz1itB\nrxKX6xor4cVt7/mxneLBmIPRxjkD3XSSMUc4swgQUQWaxMOVXjWOdTODmRES\n9SERZt+MCeE4RY/4M+y+YTwVC3f8+SfLs+Ir8TsH30Jkar0JEJBH7ZrRP0j4\nz9+adQ5qXa2akCZOLZquaXbVLMVMzRXf2RoQghHsHAeIobdNUGjaMsFI7ebY\nDoO9oKRq2ximRfJzZd8RmuYIaW7YxR44MuXBrd9dTnwAkh5VVHcnwkRpTVGC\ndU20FzEgZkH8HYcnrPO/1M2l/yjgTIZE099889so6M5lgTp8i6s2FALUw5gj\nvom66wFzGdtCFmwzHoPTNQKEkrKkwQNKOuZrB3mVamVRWN8ueBCHq+h0WrYm\n4QQYGAa7+MSuunCUvZzLSUOioNWwXF4/xozhvbvyU4gFKZjkdqkgFR9ZOoRn\nuED5tMZBpkxNlfGmwYUHBKFEPtqLIMESs5Lj1ZoEeZO4MBhtmMr3TPc58kFK\nKKGgInNOuqgMvABLEw187DBSvWQY/Q1rW2HKG/GmE+s9alFfEVDdOONaAKd9\ntHP2CsPBATZdn6+1AHTjOR14/S3gEow2LjKB6eINxHZOX+NvtGOkizbpImoE\nTZ9eyLXi6QDEWKn3ahkVtbI5Zd7WchzdfaToPqnoQsa3gsHealIesR8rJgfR\nsEBc\r\n=N4uA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBNgwAlA5jcVa9G2pxVtGrhelFrztHxeo3BwaKdcojSIAiEA6LHK7hYfzWBN9EclSsBB57/QkU4+PUn9g9EaZtELtO4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_2.3.0-next.1575914912.d153a205ca18f5b3b55e886bbebe476e794435af_1575914913048_0.0404430463621106"},"_hasShrinkwrap":false},"3.0.0-next.1589158246.0b3535d2502d65be1ccad0745fe5aba44514efef":{"name":"logger-clearable","version":"3.0.0-next.1589158246.0b3535d2502d65be1ccad0745fe5aba44514efef","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"https://github.com/balupton"},{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.1.0","assert-helpers":"^6.2.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.0.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.0.0","surge":"^0.21.3","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && npx jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"0b3535d2502d65be1ccad0745fe5aba44514efef","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://github.com/balupton\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li>\n<li><a href=\"http://balupton.com\">Benjamin Lupton</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ Benjamin Lupton</li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.0.0-next.1589158246.0b3535d2502d65be1ccad0745fe5aba44514efef","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-XXck7z4c+pJNQAH+ONHeYZK5Tk/Eyf3QfQpHFk7jhokWh/lZgP/p2+eEKsPrAgpteC6pCuh3ty9ZdWareO0tXA==","shasum":"2ced1499c303907ea1ab6cd7c233d740ba9d47e5","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.0.0-next.1589158246.0b3535d2502d65be1ccad0745fe5aba44514efef.tgz","fileCount":6,"unpackedSize":21012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuKFoCRA9TVsSAnZWagAAejQP/i6JDf6BGVmrYAgTN+Li\nMtVuxul8WjEyTUQxMiMBZnWHADnem9pp4LJD2LBs9lOkkdBPFNaxiIrLCoyh\nYptS1K26dqToPshLlAN+jGyhtxtkKHAN8ZvupSjeeMhiaxfYjNGaB/4VINR0\nVFleWFfGWK8cxFvMd5VMxdNBg2OfSWlKvD9AohSPb6syoXUugMlOPvycHJIn\n1JojCgLdbti+HzT9/oXqiyV0W601xhNDwakdt4SHBhIqTuh0g2ivs7JYLSo3\nam7zaIc/GiuObYlQ49OgrGJlXJThrKByBkZisG0GraWcQA5kJd6ew60BKv8z\nRbeKbibYQ1tnU1nOvjrtxcZEOIc8bWZG4A7zqwacHIeu1oNQ6bVF9EgtX/GT\nDGX5A8c7W6W+/QSgjk06AO5HscPUk1i1ys79EQ/zsd6y0o/AyE5cbA2nGvZM\nFpZ8W2hT1N5p3StyjiAzwMuE5lJDdniwdrzanEwCu3SuOYTtodYLDSmTFRhS\nq05kjZO1roglVAJbNnepH9QAWD0csXDmM4I0Yb6NfV7NtbtY/Q9L4WoqJZ7x\naBWEs8/mMtEVZlIMcyN9MMau3wiQeK/atCwAOkt7jxLR7+VsQDxiTI5HdqZX\nfhLkzZWJMz1chpONBPuNa8BTH+ZtQJdFrZ1yXhnkAor/kdBqzD+P5LzD4Y3A\ndC2t\r\n=suZR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBtZ3i94fLhIY6Pukc2w1UZCrQ0yLguzgK0zLelu4dfVAiBQqJb9l4ngo3p4d0y+NQpUzN1eRUrEd2g97kvOL/LfuQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.0.0-next.1589158246.0b3535d2502d65be1ccad0745fe5aba44514efef_1589158247626_0.9548002789164951"},"_hasShrinkwrap":false},"3.0.0":{"name":"logger-clearable","version":"3.0.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","url":"https://github.com/balupton"},{"name":"Benjamin Lupton","url":"http://balupton.com"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.1.0","assert-helpers":"^6.2.0","eslint":"^7.0.0","eslint-config-bevry":"^3.4.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.0.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.0.0","surge":"^0.21.3","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"npx @bevry/update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && npx jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"npx projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"npx valid-directory","our:verify:eslint":"npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"0b3535d2502d65be1ccad0745fe5aba44514efef","_id":"logger-clearable@3.0.0","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-zNkg00rRIpZrX5JZpJJUVBiAklchU2bq25SuXH7pnz0YaKhq9EldBxXp9kWAm4XJEb66c1XV+UDe3fKPIhZtMg==","shasum":"95c67915d37a19cc81d3ce1101feb04902491d34","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.0.0.tgz","fileCount":6,"unpackedSize":20955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuKGqCRA9TVsSAnZWagAApycQAI8bbaaoRtWYkp29mu6M\n3o4dSzx86QPKstDoHMaLbJD3LEMs3feiuJi8Kzbhs5LrQM81TVoZ1YdoDUoQ\nP8GjRxuOY8qF8nuUEQkUIZ9X78FTeMSn+Jd3eaz5Mg4Nn3IWcsVdn23Oopen\ndA5xPxUrAxXeU4+9LkeD5sk3u+YtjQ+E0d8YdJMyAzFKRq9SkEfROShNNIHt\naZ9vcmWsHanrUJGH/f1w1MXU35KB7WVPfhRIYjSat3+KzZ2kGNLl3rzbVrqp\nKsxC2pKRH6xqoSQlg0uqMK0V+yXa/ZvwWaqA0/MZePQIGf4D9iUlEHeidpBs\ncsCc9qHIB/5IuqxHqXsak8RYFJNzv6RZHEN+CUlphC5fqZBYctnPwTXHh8kr\nhlmPhm9u8KA/66SQW/pqA0Xu47rarDtbZuGRnt6Pn0gZq0miMWG/XeYCzChD\nGdHlxOuEYjmt24jw5nApE4IVtts32wjUtRl/Tglihp/UJ050Z2hIUqhW+6Je\nn4WV40+smPREe9EzvwG38ag2b2YBdlTHXicrGb3QcwEDc4nndWHf+gNHmqaw\nnN3WXtMNfBKigZYID7/uEdzJaJA2k18M6AXB/XMbZKAOv9ItlVQtru8xuP3M\nEqfNi9adty38KXNSw0RhrmnXwL9pRGxTQ2FP2XzjjO+hsajApvP1Ynk1aSUD\nsCmd\r\n=eTzL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIES8Aa1zlnyPsKetQCCY1neAS+DSaH0CfP0uoFFWqKr4AiBtSY1Ske4F8SXoQXHGvTInFgkhbbIp83a2mSNPWwkNdw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.0.0_1589158314295_0.8421481029039939"},"_hasShrinkwrap":false},"3.1.0-next.1590002809.d91ea5c849a6515aa0bd7ced5105de6c338fff9b":{"name":"logger-clearable","version":"3.1.0-next.1590002809.d91ea5c849a6515aa0bd7ced5105de6c338fff9b","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.5.0","assert-helpers":"^6.4.0","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.1.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d91ea5c849a6515aa0bd7ced5105de6c338fff9b","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.1.0-next.1590002809.d91ea5c849a6515aa0bd7ced5105de6c338fff9b","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-3VmWNdxCZpBhA8y9oFicRwfpNYJk5PUsd9BYYpGVEPumKV1GANwjD3VWaFTtlHHTrwnCTQ7vca7k/+lSVFeH5A==","shasum":"4d4f702731f3190edad2e12c04b12dec4ec82968","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.1.0-next.1590002809.d91ea5c849a6515aa0bd7ced5105de6c338fff9b.tgz","fileCount":6,"unpackedSize":21181,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexYR6CRA9TVsSAnZWagAAujIP/3Np+gSnhD/ypqtiktoV\nfuu/OINMq7geZjYPzF7GlJBEq1cHgXKv6uHFILJCmFS75qxu1FW/B1UGHf5r\nKq0wgspsJG4uhco3VIF5yVRZlpEIZhAQAe6KTuyfthKWjydbqEMqTw1aUrTM\nxk6G/esdzcsP0+f36ecpNq+cPaORb6J644gp/FrE5vnBShExwet7PkzOag6z\n6fVsYKUDnD6l0Ht1zHf1moMktxYR/Wvh0kH9cwzVwoUm7kMDQ3vhbzKBr/5l\n/maMbAAWjkfo9QNdvGL+GVhUaZgvdyW8SxPWeaMOCcOMlnaet3SFfQkoHMIX\n96u8vlPLemtdPQXzGa9jMxWKzA4Dx/KBZK59RnIM8Q/XNIA25wKWu3brKS/3\nOoCG+nh3B7vXKwBTP/XKh5B40n1xxz8sTGAcJ/trzVS6PJc66WdxdH4mz6qB\nLSrFOj+x/EdOQjYfMWw6dGTAVJ6tePlklhf6cZX+b50BOJWwjITFMXhbBt0V\ngVWKclmDfsIHVQHV5Z7f5SSl15DI3MOXDPL54EdHW9dKTOsqCfeJBWMj8lii\n4Nmr00VRrUqinWbk/+/WaJwc6avU929KoLQAU4inlOd/ceo7RfrgWhJjpbAC\nHdLuVxmeCRkz8EP16bpNUFLMbbTP9l2sxuWu5VG0N6MUz6iIy1LZpk88UK+G\n+buJ\r\n=4eZE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBe9ZBJ7WGqkAreb7tXZ6NT098tuXd/rtpJMYGNSyGc7AiAViO7zOFKerVu5l7dgdXSFHnKtP4oV2gQ6MJ/wCfaPAw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.1.0-next.1590002809.d91ea5c849a6515aa0bd7ced5105de6c338fff9b_1590002810358_0.9521533793534573"},"_hasShrinkwrap":false},"3.1.0":{"name":"logger-clearable","version":"3.1.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.5.0","assert-helpers":"^6.4.0","eslint":"^7.0.0","eslint-config-bevry":"^3.5.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.1.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.1.0","surge":"^0.21.3","valid-directory":"^1.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"d91ea5c849a6515aa0bd7ced5105de6c338fff9b","_id":"logger-clearable@3.1.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-6T3l5kZXhBOsL9ttOoFfKbebMFi9UNMz7bGzPBIXiDgXRiaT66LtY1+oOfvUlc0x9Us0Gk/xY6hpUGDM9yzyAw==","shasum":"1664f4e0e83b716f36fb83fafb91f12dd96c39d9","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.1.0.tgz","fileCount":6,"unpackedSize":21124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexYTECRA9TVsSAnZWagAAQPcP/1Nr5UeUs0FrNEqbMy7v\n/kKyty2o1nfxhdZmODo86BlM81IV/okHKw9nqlYR9W1mv2rfnBWuqq/o5I3l\nyBzjO6TNG/cVJsNjlPtpMhvBFFpAjW0GJb+dPHmW+IQ/S7svbnG8oOj6MNj0\nKSOaUxgmXnM1xnaM6+zTS3pkzRUR+9Zej6kB3w6EMPNWx8etu6iFAN+SzTFr\nnXQAOTcPAzKrbAX1z3qmAxbGNu9uivr+JEFV9Os54Ey0LWPy4bqDcuECmpA5\nTqBViIRSmhrDHwpzVR1f8/8w26qX6m9vapALCmNEV6zeU+eqM4F3bRted6NA\n8sl1jFN8B7hdbxJyrM8XgCOilhwe7kNQhrLJ1tG8/fcm++XsKKAnB9Vr4pAn\nfi79fyX6TzOArH3yqZ3TpAnb2UklJEqvV1nz2WKS5xCyFBexa+CREu/vvph9\nLWUQ8+v4Cz+Neb7/Mk3XpAeFt2sgZHcQflXzKBKCMvrWcPiLOtFYS3X/4gxt\nj5lhvr8eJ3jELGkPFymTEJ8djk3FjRe8tytcn5t6wOgpo0LynvqfDrbArLx8\ncxICX1GOTaOE+jaHxwOJRRB149zSRKW8MhV27XRF/NH9NHes5Z0rZ5RjecZH\nL+EpRSeAYJAm89oi1a7io8LTv+0oL4YVNt2gvg0wcRhYf1TB30zMfnoDhet8\nRKHQ\r\n=Qhxe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2NiZUe7Abkwsy5giMu3OzgLu2ZxIMAX/bt/ItlaJCGAIgBotszpBQXqY9cwPwaveAaI+N/Gf71ArL3e5Ye4HxgKQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.1.0_1590002883763_0.6115661800211492"},"_hasShrinkwrap":false},"3.2.0-next.1590051484.ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc":{"name":"logger-clearable","version":"3.2.0-next.1590051484.ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.6.0","assert-helpers":"^6.5.0","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.2.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.2.0","surge":"^0.21.3","valid-directory":"^2.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.2.0-next.1590051484.ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-kShY0LFTX4vDOTo1qr0c7jOZ2E+gSx2wOnXdYgDo3aFS5p1cUBbFaUIl8DOxOxZl7fAqmyvPg2wsxYl2K9y+6Q==","shasum":"568445745fc87084a9833d3c3ad450bdb1e55ac4","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.2.0-next.1590051484.ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc.tgz","fileCount":6,"unpackedSize":21374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexkKhCRA9TVsSAnZWagAABF8P/2wcRDdYd34YZqTaCgq9\nHSJAjGt5XwbYoyWv28n+Ohp4x+lzMKHv/YmQqjqclmVo02awG8vYfa0gOeYm\ntNm33mgLS9YSMkB27dv9y4iv+ILOy+i63KaQ9RqoDwMRVNllH2XUAVbllqMm\n4+VbJ5mG0nsWR5kaFRiuCh0IdONljUuk94KM1kRxN5H1MFGQVpYCi8Why1ni\n6fxIFfPDMUgVdVi8nx767yQqNFKxsm031G2m+OKyDeyvfbftEyMx1+dTQisq\nk4WJ5KsSCA7HQ8qz8COwM2T2CUS9w0sU7ZicQGCcFr/TDSzByPi9hsatwB4x\nk9Zj0eL56oYtzyxeI/8Z3Sh/7PPH/C3ShFVgy6koMlzYQbAeXogDx+ibxAs1\nIlOEFtGQkJd/eGwlwUm0+hiESytisxyN1CjrbTbOIsuFpdHdjExbpy/Iclkq\nx2Tre5ZGKyt5lipL3JnRFMKal2jINVMgrLAt3nkMDz7ERFzbxusfxQI+FObf\nyfmqUNpDngQlOaDAlW5H2Mwu3ZgSgJXW+GrRL1UchIyn1O+R7m9erMWOkWyL\nevv4A+2uOaIdcS2hB1mSQM3AeQvB6Dm9Wy0XcTVJbkj3AUFHipAeCvYFVLJY\nKUrIW4RCVxRz5AkzaYrbSpywO8UUzZJf8RyLFhM7cBl6ZJ3Vf8IoR+pF/g64\na+qf\r\n=K/BQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBHXnagO1DB9ccFClMXRvKoa0BM8XaYbqaCG/UHQt0pgIgbrRz5XHR+IcEZWQN4Pv1Wfco1sBKGCnO2gDpc475/qo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.2.0-next.1590051484.ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc_1590051489570_0.761395697756184"},"_hasShrinkwrap":false},"3.2.0":{"name":"logger-clearable","version":"3.2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.6.0","assert-helpers":"^6.5.0","eslint":"^7.0.0","eslint-config-bevry":"^3.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.2.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.2.0","surge":"^0.21.3","valid-directory":"^2.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc","_id":"logger-clearable@3.2.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-+T/CcYTZKovVVfkmZDpBAYwAszmFQOTCkUzLmzmjyegorGOOFi0bHGaMz4A/DqC8RLZCBEleEkQ0BpTMXWbjrg==","shasum":"3d9433b4eed12ed1dbd358a410928bf4c6463c50","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.2.0.tgz","fileCount":6,"unpackedSize":21317,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexkLjCRA9TVsSAnZWagAA8moP/03nrELmmRQ64k38P6Om\njMPV/Vy42153pDiEtJ+67U86bhV0eJ4t1rtn2SzRuv12e4dHVs4o/3IB1069\nKMqAhpGI7bTiHLaucuA9N8PJwkuYi/nVV1wc1+J9uRnhTLVCkCkn/hRxsh+c\ntyiASIHSfK9Hz4sK/9CNpZc3FJZ3tg2GRBTaXFvGY4iFuwuwrYF+ySKrZB++\n6Kux4oAuqenYl34nGsxzZc8zb/Cu9bVaoulOOFEmrZtrOooYKpflK6JkzeU8\no/W07oK+BTTkckOulMA9LGXDpROZkF5YCAje+ajHYmY9OseIv/1aOV/0URRv\neGciyT1t64jf5/80vemEejN3gdQgsxOHjYiAbok3X3H5Z640AEVoY6GcxHPx\nLCovVG9rh5xqek6i783F8KN4q2mqQe+p/FpOcnceZjroEDdVjL4HM8sF59Ht\nPFu6rP0YM0ooUqA92H2oLMd8V897LAgNZWVdlnn3f5B7is7VzL/J+1j10RUM\naE3+eIpy7YsQBf8v3EI1CnnWTGAwz+8MiREqxWdTSw46xKzKXmoxsqq7lLMQ\nyIK9t3rSFhEwBw4LhyQ47VBOK1214Hcr9OdAJPyRuqSSK9YkjBnDIoXLa3Dj\nN/Fed5DBV2Tc1Wh1McMx3FlZlrjfsoEn/Das/6/GtZuCq2d+0Z9gIJ4LS3D7\nA8d5\r\n=WNcQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEy+zmIjP0H6BiUx2eUqtkKAfDfBuBp2XGa2vgA+v67EAiAsPkLjeogyl2zbIauo8h+lCECyAah4ysG3tgo4vstvHA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.2.0_1590051554648_0.767392316025499"},"_hasShrinkwrap":false},"3.3.0":{"name":"logger-clearable","version":"3.3.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.7.0","assert-helpers":"^6.6.0","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.3.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.3.0","surge":"^0.21.3","valid-directory":"^2.1.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"845bfc8a217bedaba663fd664f635378df166066","_id":"logger-clearable@3.3.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-HcuchKn7TWOl7IuHPPk1KRcdVAIOa9CpnjCU7FnA4mbvh5psabBIHI4do1+261LeCmj9w3HWc/oOgrAFt7KDAQ==","shasum":"8f9dde808d1fc1ea89d5ef367342aacb2560e520","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.3.0.tgz","fileCount":6,"unpackedSize":21510,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqoTCRA9TVsSAnZWagAA//QP/AiZ0NFhacMtuEsB9iYR\nH0zVTZRU/YRFalj8Wmgm0/JnyiGRDk5l6YV9CJbCfiA4iwelgKPlMxeyYPRj\nt+md5K9Vt8GVLDIp3MgWMqTOqNX4vpWA1ZZ7yyrlnYto2CxHrBoGOpBmtDzv\nkm2I8l+87n+HLqxazOIrVvw0Y8n1zj7CSGaydGfF1ZV3v5ObrVg+K1BpOFPo\n0SOUgZVePeBokByuHQJZslP4YVit21szM1Uv9NP1tPdfcqPNiVRii7tj7OcF\nTlL32a155eh1qlqg8WrbKwjSAfS1+BncpyUVGK3iHzIvxZTNMCfrh4ubOmUz\nus5kY9h9uD/iGFhYfNMTwDqV5Z/c3pXvM/iYXnHjL7rr24q0U4X2xIGgb7Lp\nIgCsYHkm+1RvNScrXO+sn+WdjuyvKMaRHtbkg+zivrWmH91qo4Ld6FL9a4cx\nERxzbGD+IgYOiLkQkv5CzHraNPArBdSOIlBtnuYLI87bHbwqjj0vldNwUatO\nN2Y3qqpF41+Ez1PK/hc652znxqCt2PWkeGxXP1CkIsD5WbhrSeV1TPv32M0A\n4lYgCi0yCeIBAFmoH8SwuD1j8ku/AfuENXyJYS7MUeR7njCOqfgPOGLa1ahe\nr6icUcJvmGj/8t6fsihNuk1xrDe+n/uF7lJw/1KF2UzgKEohi7pLnjS+ZNKa\nK9ra\r\n=Q6uK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdvdY0p68txCvuasnO1YvUjaD+ITtQ/TLDNSJAJx7/YAiEA3v2IbAgwndinDXD96gE7NJMPAFTfEc/nETvn1mKdJng="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.3.0_1590077971157_0.5192600816697845"},"_hasShrinkwrap":false},"3.3.0-next.1590078049.845bfc8a217bedaba663fd664f635378df166066":{"name":"logger-clearable","version":"3.3.0-next.1590078049.845bfc8a217bedaba663fd664f635378df166066","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.7.0","assert-helpers":"^6.6.0","eslint":"^7.0.0","eslint-config-bevry":"^3.7.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.3.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.3.0","surge":"^0.21.3","valid-directory":"^2.1.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"845bfc8a217bedaba663fd664f635378df166066","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.3.0-next.1590078049.845bfc8a217bedaba663fd664f635378df166066","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-yEC8wXjUboMmqoY8pwIBi7paQb1//yePGMYw5/3/Xy4OX+8CTFUtXvIWtYi6T+b2nQ6VT66lvsWcjExl7JUJCQ==","shasum":"ffcd8abd892ecfee0b6dd4d8be833df7a0b622a2","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.3.0-next.1590078049.845bfc8a217bedaba663fd664f635378df166066.tgz","fileCount":6,"unpackedSize":21567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexqpjCRA9TVsSAnZWagAAs48P/3wN7PAD+DipyUlM0NcF\nH2UHQUGHi43WUYFW7kTM4ti9zbqp+PUYv5dZvWOKd2yowybzbXqotBgXfLJ6\nxCD5a8LLe+l+U1ffsPyuOW5Tgf8cpAj1HEl2Xsri2JJUCtLPlFybtZlSrnL9\nFhLNXYIxsAT9mQK8YPMw6fIi2vXeCjRl44pMrCVx7ld93J4dQXTyeGiZyjtI\nmlMT6QYCddAidOytETrgqYb7ww1ptxaHB6xR5Luo7HsEaLuZy8BE9KT/6qsH\nn2zzhn/4qZsP0SO0697cJZQ26TsNw8Ju/GlHnhCcSTPYdXIEyRtNpy+E8h1e\nQwhzF17mY15rb5uEEhgvkiTZxgUyQtl58pJuX6/CnSbqseFIY7FrPSQZaKc5\nElJbzVGuMY49LbcnfT+zrjTDr0KemugeHcYKWooTD0ZKZC3mDiQ2yNO27ftx\nTWj9iNpXXm34+T3n5ekyIgiYGICZn30S7/Ncbhy22VnxU8WsQSNYhEJvbVhD\n2+uA/5AktlT5/LrVSpDsxWJA72+KCBn8OOxmiydWboUUCGcXaHXGXXZZSp9F\nwX0aCKjC27BXwLHccI059lDh6hzB+gRCS57EG/ShshSTYcViBHFaWfDtZxcL\nM3SdTdMX7uhrcEGGd/YwxMM314rJVI6mYKVip+FuDCgzmdFeB44+ILGfo5eP\nVwcq\r\n=mHK0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmJcH8900bktQMGJMgay6M0XccpDlAnSiZaox9yn+9tAiEAvoaTduSl0bSgleIe1AJsV10/fP+RBCVPezgzlgkQx9Y="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.3.0-next.1590078049.845bfc8a217bedaba663fd664f635378df166066_1590078051263_0.8033091801897438"},"_hasShrinkwrap":false},"3.4.0-next.1591781495.dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc":{"name":"logger-clearable","version":"3.4.0-next.1591781495.dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.8.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.4.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.4.0-next.1591781495.dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-v8SC0uMNl60CnqNk9hZn4eFAdqM27crikWgDlO4Ubis7gpgc2uXSwmppQ7fs7Z8hpnLBVqnGWEjuPWD0Ncy4tA==","shasum":"ef8e198a61a94da0f527e07021614be7e91c040e","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.4.0-next.1591781495.dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc.tgz","fileCount":6,"unpackedSize":21761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Kh4CRA9TVsSAnZWagAAgvkP/0pPJ2fW8th4EH1sZCsz\nVftEv3kJuurN+o2eiN26AQOBeW8r0CiVPHNPx+TfVSOFw0pbGWwcwbPLWyc5\n1EL3Z2nCi0kY6qcNvP/G3IUyRu7sG6qUfEFu5nA5gbN9eJ4pz06U8M5isHC2\nGTtz8liOlLrY51cjwGhb1jX6hm/P2mOMVvZVJgDth0gI/oEzrxenNvxaXg0W\nXdAEZ+F9F0BpUCptprxLhV/XOHlGVIKLZRdUcrWhARJzeIZDld8FvmPtVijB\nHuHrNZxUUR95tG7h16WKB4QeBIgAUGdu7gnYqs2ClslK3RgmMHEjQLbyLbQH\nNOWRXVO7VQ1bInU4YZ12/Jb5KXBvibGKBe770cA3sQaYYYLAQplCaVCOs4S3\nmmqEl561uE1KK9geRWi7k1xk7/WH2lritSbYINYaXWEJ0v38MtaMXDBIHPEk\nNTxa/68I1LfeW3qCBoFRc9SJfIqYsOfOZZ7PJ+2r9KcShs3vgfXCbDHSL4SG\nBmBvJTFGLh5/lh+iLNP2KyetN2ehLYB321+Gz77kXGyR6SHIniXdPMqmu9Mc\nEAelEMepuwLxb333OCDhn7a7HAuLA17U46kW6qlqW+y1RNMPyl9Jg/zkMZLH\n1BrKKwWs5kh3Rc8SAzDDUfW3DMY6oO42/C0cn9KyYlAl9qKQtqE4foW8zbfp\nrdNV\r\n=qu0/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8b3ErOlLHswAZl5NoME7ZjTgR583AahD5XUhja5/nfAIgVha6dhrMLijIfD2SITONQBEratvgdJ4mKDw6cwL2KVY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.4.0-next.1591781495.dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc_1591781496188_0.5629255295243705"},"_hasShrinkwrap":false},"3.4.0":{"name":"logger-clearable","version":"3.4.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.8.0","assert-helpers":"^6.7.0","eslint":"^7.2.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.4.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.5.0","surge":"^0.21.3","valid-directory":"^2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc","_id":"logger-clearable@3.4.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-/MYs3BWCzOw5vdaAgoRR/x7q6IyPsEHkxeXStETbCJBiX6IKwNf3Xy0Uucp4SiUjv0SkHZnQVHONV45PDPjDgg==","shasum":"83424c08cee5fbfa049d0c56ffaa7e075b050280","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.4.0.tgz","fileCount":6,"unpackedSize":21704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4Ki8CRA9TVsSAnZWagAA8jkP/jOMWF0q+AqPnNX6mtni\nCG6PLQOlQJfTYSZuKqhMQ+lV+OqGwq36fpaqpwGWS8qLdd7Y+sSHoaNbTxQF\nX9nP0x74SdkYYoQzQjqss8S5f6r3ewRWT5w451qusGz2mdUc9lCzQTkY/ZE4\njnOjJHDE40u/n0TUC5xRN3jIeA6XaRpD1fEVlJWZR5V6ClzMD7cd0MRdOGS4\nCqUm+UVhmUUoB/MaZGgNQdcgGDhXJJjazWkrXJXIlyrW6konB0qyBmE//4Ld\n+jflm+ag6YkDBKO2LB4a9b72AIy1xfprW6ETBoubbLNtRezn4RAlOJ0uvHTr\nV3jw+vrkL+y+OutPH8l9WlMc/40riDMhKjshKFrZotT5fPqL4WwCXD5P6tHc\nerMMJuYQec2RVBx5NcjqmtYny0/EpN3gl1xH9/M27LmF3oK5/0ewCUrYjyH6\nXN8eS5/YxNKnKgow6LR1HppXL5121DS8Hv14FPENKWEe4jBxoEEMBr0ID5v5\nqupNE0PnSb+CSJMyfyi5EnkzfZdb5GrwMeHJK0n1d+tEGoOTPsKLob1O0955\n+J8jZqTHx++fXuPzSx++bsXrMfYYxxMqSVOU+8Km/+Jh6eKSrMybZWmKr68U\na0Tcu8qgjhvvjyO73pUVpky6+PM8gbY9wVv6wJ2Zv6oy9UiZ++dsoVraC/PT\n0RRJ\r\n=AOi2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBX8q31GpwOXpFdBlxbCEjVoq/rVBkBnvL66nQmvA0aPAiA/ftnOj+KpVFYIi/yZYylk1ILZawCSHJo7+2FZc8kNzg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.4.0_1591781563741_0.6621983573535717"},"_hasShrinkwrap":false},"3.5.0-next.1591798625.08cf0af1087532364455c95bd0b33c099930255f":{"name":"logger-clearable","version":"3.5.0-next.1591798625.08cf0af1087532364455c95bd0b33c099930255f","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.9.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.5.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"08cf0af1087532364455c95bd0b33c099930255f","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.5.0-next.1591798625.08cf0af1087532364455c95bd0b33c099930255f","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-2HpSjig6mTvER6GCsLiXerWLPIqz6iBJUXX4YoJqquZc8mXs7d/vUEpIVkUSguV+Jr4YpfbXTEfBJVlPtJzXTQ==","shasum":"f9b735002ae5b3d48f40a389cd8b9f21b43f8707","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.5.0-next.1591798625.08cf0af1087532364455c95bd0b33c099930255f.tgz","fileCount":6,"unpackedSize":21955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OtiCRA9TVsSAnZWagAAqQkP/0MCPMJfVwUtkjmGwsbv\ncDu4vHQgBRxSNtwwAXEkFZzi/rFtet5caE7fWqKu7Q9miKd6+jBMfEJ4Veuf\n/PcqZg+gHTzSheLbhQVobYD3pbPdL4LPn9fIJuxyLskNn1tNHsDLc+RKToQR\nGX/WXbYwM4uyFHmy2eiyOSEL9UzAkoq+M61PQbOzXbbSATrVRvmQEHXna5sa\nJ87RQUI3WzDGcvdZugYJNwxkvEdN58V9Uopz5KYnFrYok9oDU3+rTtMlQYMU\n4VrzliSbbo4U6wLelPZuAXigklJ7Xhk/sbYmRWEAinWR9mbEkq90V4JraqKt\ngS/w0IzR2N2m5OOx8fHzqwvq3XMEbTPSPQoc5NTbJaEcpmW1pUTcu10sFgfj\nLufGpNeYWnrdq8KNYpiZHk0copMtYqEztx94eM2268JaZX+2flUn7U3Dj3Nt\nGggtxLFN6CNopoORKE5uBL/k2g22zIlUa5AjJSmCyvp5M0aaQLhoR4u7lnD7\nc+x8+quDIAvhP7FfDPEctWs0xzvbqYRmhGs5v7CyxkmFSdzb6z0xgmZFggAj\nCjz5mnXrfNHWtWqSKOamYbcqJfSXWCCgbMKk0S8IMQN8C0wGH2jGbHcxl7w7\nsMy9G7uWpF3QpKTObTtnEwxLXxKMb6oeHzPxIlUths/Phnpb6swpk++o6gI2\nvvF3\r\n=y/OW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDaxOyHZDxOOM3jiNFKdwFlr8kZndzjd5JVFZ7lye1gKAiEA/EKgNvdavUM4P4/bJZ3ypO6D+GbkldwcFabpA6pw17Q="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.5.0-next.1591798625.08cf0af1087532364455c95bd0b33c099930255f_1591798626429_0.7550356690805287"},"_hasShrinkwrap":false},"3.5.0":{"name":"logger-clearable","version":"3.5.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.9.0","assert-helpers":"^6.8.0","eslint":"^7.2.0","eslint-config-bevry":"^3.9.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","jsdoc":"^3.6.4","kava":"^5.5.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.6.0","surge":"^0.21.3","valid-directory":"^2.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"08cf0af1087532364455c95bd0b33c099930255f","_id":"logger-clearable@3.5.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-sspswZW5b0/H1oEY0QDtZMUUzYfDC/BZDTzptE7bLzHmyFyeGbqcSKYluFSv3Gxz4fZIl8UhPeYKEHX5YyGgLw==","shasum":"2ab7288244c29fc0c7ca5cd16ff70a221be72659","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.5.0.tgz","fileCount":6,"unpackedSize":21898,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OuyCRA9TVsSAnZWagAAZGkP/1CFSzlYUUOpnO/r9FK4\ncS00kcBrDaRT36L8E2vNQLL+KtZbPb9X3IaXqbVM0K/A6iuTQsW2f/ZJHGt1\n/TbZcBcBJYX3wPP4SXAm5RoxwUCyJHtJ89D3ux60+g8pFevQBXOiCU+WyOmx\npbszhFXBAaL8G3DfDzvlA94xqZX/J2xY3v+8VgIHhXgyShaJ57Ga+9BGzv1b\nohvZ4sNalQt2X3v2YLNLnh7ZkXFJsYZUw3/PmcUOHFycYYrudEQTTdxO7w1o\nP8GBEzSvcopHWn6cNdE/qQZDQyjM2Y/XMVQ25CQlI+NrI4elE71828DkiKWS\nFqvyCFo/YupKRHFUqwqwj4/v0h4jACdeOeKHb3VWf7B1n55XCf2yfB14T6bc\nEP4hQD9+aWYgYRF5pxs1a/h3dEvEV4HXaGMgydh2N2oZb3H78VqYiRmkkMKj\nLnieyAFC0L3nYN1Ef4tRRut/iHf6sJXPJPD0UB9h9mSHgb/YIy3UNZnw+C2W\nlnv4Tdkpfr/3/R0qqpKSb1mK26m2B40ArkRF0hp8C+8kpnX9et322qyRpW5c\nTLEmkgFsih7XTIvVAqiBsMzHaEyThfZfwXv5/SBsLQ8iA6Dq90KfxIaTmrUp\nVN0Ts8jqXLHxTUy6YXtCgyAGRGd4yqd7eS/aWeKFvnWS386x7KmVFwcvUUGR\nU+H7\r\n=wxg9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuenAbf6HSQnY8S7Xye57HyciuhZxtJgw9v+1quYlNvQIhAIQeZHwYGBnIEdUuq2GT10utDDeVHEHgC+fF6TIpCyeO"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.5.0_1591798705431_0.05191536875759617"},"_hasShrinkwrap":false},"3.6.0-next.1592628646.bf3b566588cd6b967502b560f9ba8e20bee138ad":{"name":"logger-clearable","version":"3.6.0-next.1592628646.bf3b566588cd6b967502b560f9ba8e20bee138ad","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.10.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.6.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"bf3b566588cd6b967502b560f9ba8e20bee138ad","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.6.0-next.1592628646.bf3b566588cd6b967502b560f9ba8e20bee138ad","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-9bEEE7cS72cLBPfTIJn4mLcwWs9HAXOKQlhNXlWyU0JDbxKDizUVmgM2E51VTktOFdsDLEj9/Gt1OeDAeK/jxw==","shasum":"718d6b9a608622604c354fe687733b9a5caba816","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.6.0-next.1592628646.bf3b566588cd6b967502b560f9ba8e20bee138ad.tgz","fileCount":5,"unpackedSize":21883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7ZWoCRA9TVsSAnZWagAApdIP/2MFKvfPEQtVIf7vzuU2\nfd1ev5g7BA0HqwfQT6g4J73ywQ0MhsAzn3KP9DxpQc5kQf4bc8/B8teLlnxe\nVRc/DiryLFhOdiCX828ThIPoPoFnj74d7ri0eo+NYViXuwPEkeeH9FGXPw8M\nWzmCsZNcgJvW2P3j8tPUPsJ4DiBinPSXXvNGb8Vu5YVq4+UXSHJ7I9TCB3wh\nul/y2/9qZ5KFlCJsKDxNRF0jg5xRnkBRKSKoGCtN0AazsnP5Etj8SKy2NonO\nhij0ojXGxa5sOQJqB3SKx5tr/SMHvDmC+EkW9uRHm50jxd5Az+5Rh2yZVCMq\nIjLQ0PX67L+7XpCGW+Qu4Yggh6KT831wSHuReKD+8CiMZF/9XFVeueWRqZrD\n3jN1uFAW46Z+JX9P3JvOqNzX1L6K0ZUyXlzQNtdRoMn8+aMQouJgPuBgijUE\nlKTNPNt6BrcrqQH/lTjzDDPrHZOeAFYp0fvI28aE5yrnenW8FserNu4mf/y0\nKz+FWtQvQa2pG/wDrUSc2nfQvXGW4nDP1OaiHS4oMQOdNQJSbDZcBPSkSLLE\nXfm0P66VjBJtDw9AfFPXvCM7pSfgpsfO7tLpI0t2Xe6XMx/JF56Pj7ojtaPR\nN9HDhd+yBrtfGS/dYSQlVDVdyT4K6krJ0FG/1ydbQWhOqzYnqq8+dPe4lo55\n0dIx\r\n=pWFn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGB4CsASHwRmKtaBT/xTDe4MhTJKFOdO5Kscq3Ob2tBzAiEAgkMPnu5EkvL/1AdtDmp/hOXfPHCGIhnaBvaJegQrSpw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.6.0-next.1592628646.bf3b566588cd6b967502b560f9ba8e20bee138ad_1592628647720_0.2232124379780278"},"_hasShrinkwrap":false},"3.6.0":{"name":"logger-clearable","version":"3.6.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.10.0","assert-helpers":"^6.10.0","eslint":"^7.3.0","eslint-config-bevry":"^3.10.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.6.0","minami":"^1.2.3","prettier":"^2.0.5","projectz":"^2.7.0","surge":"^0.21.3","valid-directory":"^2.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"bf3b566588cd6b967502b560f9ba8e20bee138ad","_id":"logger-clearable@3.6.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-MWrk8t7YRIxr8IK5Xi+2gk/lwJeDQtypEDr9E6geQIZUmi6jtiGymFBtC2QEu1GIwtMPnaiFhmtph1dAP0hGyQ==","shasum":"642198e6f79e10720c15d244259e95ca5be5d307","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.6.0.tgz","fileCount":5,"unpackedSize":21826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7ZZUCRA9TVsSAnZWagAATq4QAJWEMi4xowws/QiNslJo\nqu0GSmTZ9gnda+sL4SIrcfAvPBu41n5BZKdE+yqMgqGDY7ZThNZz11zcvvOS\nK2ECNM2WNdb9jupVTK0HEcLg7sqJ9tyEU3+helz2UdDAWhTtDOdMyCh66a6j\nhJ1AuAfywFXWgvIDkiSk95x11jspy5m1Hwftdeb9wY0NWU0JH4nzg1EWNPUY\nLEnaPzg1D3x3EJbAztZQi/gPxJXUlp6j9tPr2iiCnMk3s/2LjDUEA3k9mpip\nstLMp7x89XmoBn/q2gHAMim6DKzSHOW9jkDPh0qtYxLUYu6YwqNs/DHzpPs7\nn49FItMnGZ+1pPGb1drMnnETza75JPesNqSHTOhmVwwNOliJvENmbJ44ZjeC\nI8IcnPE1nzqHGq7MMWx5vbjuvx2V11GnP78h18NFamSVuM8FC06n9ZbVfZTh\n//sUUE1Ddnwq6F2RWct3V+zM4Jfsi3kDk/jjiFcpqp47wL1CpE+KibEK9BrV\nkkhInuYa/aBu9jaNsKsYjxKVqHKjq/S4SRI/XmurWzsr+Fo9Om+QUHaW+zGz\nHgWDtywQYVf+ZCa1t7U9nB92/qe4q0N24/KMyou7E2Ht6N0D9G6XKPQDGrBr\nCRf3Fgn/9ws5V6eYEzdbswxoeWjR1y8vg6G5KX63xWC4LJuNYAog04j9VxS+\nFkW9\r\n=G/Sa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUEFbw8voNv6v7ynHIiTgc0geeUMDr/8Ci8D68NIHfuwIgL+RDBoGEnHKtLeJjaSet8WgONSZIoQ6+Trwc+R1RNU8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.6.0_1592628819743_0.29298351845403414"},"_hasShrinkwrap":false},"3.7.0-next.1592716697.ffd17b4018c2f3132ec8b3587f60522f93728b69":{"name":"logger-clearable","version":"3.7.0-next.1592716697.ffd17b4018c2f3132ec8b3587f60522f93728b69","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","dependencies":{"editions":"3.5.0"},"devDependencies":{"@bevry/update-contributors":"1.9.0","assert-helpers":"6.8.0","eslint":"^7.3.0","eslint-config-bevry":"3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"5.4.0","prettier":"^2.0.5","projectz":"2.5.0","surge":"^0.21.3","valid-directory":"2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ffd17b4018c2f3132ec8b3587f60522f93728b69","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.7.0-next.1592716697.ffd17b4018c2f3132ec8b3587f60522f93728b69","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-gydl3n/lrG5/wjrghZSLrNVEl3ZO43i8aS2cc47x43/FiqgSh27jo3oRHnuC34VwMKdWuld5yFUZkmhRCVXUog==","shasum":"f7516a87b8bbc8bc5a070234b0e9baad25963b80","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.7.0-next.1592716697.ffd17b4018c2f3132ec8b3587f60522f93728b69.tgz","fileCount":5,"unpackedSize":22111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7u2bCRA9TVsSAnZWagAAzOAP/ihZ9DwG/tiNytN2fCzm\negpZ/ee3diVFXTHqPkuicqKHV3TR1fHlecVX7sSXhrh7qSWr7vSwAmeOOvX+\nkZTw2lMPhvBgRj6ODVRTicpDnLQOUbvWZHBZEW3pHbN32SbS1ag2cpGFCJT5\nmNeTGyrIt91lmwsOHpl7EeTn9bJ7i/UJtp1zXrewbaCnO7jhaxiFXfCQeFCA\nDlYvDpKZUvkHaPwVpiPr/IJovc1J74lycvbIqlE+UOupkGLUIsIu+CwBSIxa\nZWXWQwpDJCUTjEjnqY8PIG2AzM2N5exqAhS/5twi6ugwYRwt0Qfx3w0/PsM8\nBjVOrtXeayelZQWFUbK6LiclQQ5psQ652BDQAgvzmmSpdfV1YPa2Hz+LxVBQ\npcKUBCKlSPVqvB35HPXAX6X6IMaS1NlEGbYJdqiKsHdKbMJSIgahSkZ39G24\nQhOkRejOI8PDLFt31yhygMLTRrizxj1Sj0FMxRY/ORDKuA+V614PMaTo5XDU\njjBSIBy4k63hPODyaKMK3YQXIIDmOGqB3SHFHtwtD0RrpUgfuw55zzhgXP9F\n5xo/rPQw80qRKVWzC9FuK7ub7qEVNMt4bRmKY1tksN40eLu0kEo+7esyu3C+\nebAsT+OKlOjhXzyutFwTQ0tXHOEou02pxHHDh2YiB+HDE/XMGN9kYYqGDlNe\nJ80N\r\n=k77L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDsUD5rsyukrN3JC40v9KKGiBd2jwaUWfuz9esiEafsAiArZH7sRDjykqxcHJuBwZidJvEPifg3+vw+ZVN922RKeQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.7.0-next.1592716697.ffd17b4018c2f3132ec8b3587f60522f93728b69_1592716698568_0.4975212437665497"},"_hasShrinkwrap":false},"3.7.0":{"name":"logger-clearable","version":"3.7.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","dependencies":{"editions":"3.5.0"},"devDependencies":{"@bevry/update-contributors":"1.9.0","assert-helpers":"6.8.0","eslint":"^7.3.0","eslint-config-bevry":"3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"5.4.0","prettier":"^2.0.5","projectz":"2.5.0","surge":"^0.21.3","valid-directory":"2.2.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ffd17b4018c2f3132ec8b3587f60522f93728b69","_id":"logger-clearable@3.7.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ZNzEXB9+5PYb3VJgP/ALTfoDcR/yHHdAnPrgwhT7W/KuzhQP7Cx4Ehk7shXBMHZ0y8Ea3U3FLzp7rJMtT4as0g==","shasum":"47cbbd75d86117638b00dcf0a8ff3901cfe471b4","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.7.0.tgz","fileCount":5,"unpackedSize":22054,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe7u3YCRA9TVsSAnZWagAAHEAP/13KDRmO9Iru4ThOFdag\nilRRnq0OL2sSZ8rI7IpfQF0hPpGk86gIZAUU24HOQ4rq1bH/7K89xHHe0/NF\nqZ1/2GVb8MnG5THfUFi55Bg9/1b3fkRpsFvxbFTThleBs/kGBTxFeLznv/3d\nsaoC5UjkA7Uzprvj0RYG1fRXXkF7B5+3ns4MNsh9Pfz16ofwYxEUfwYwCcG2\nrLW/BGNHXcjfI0QNRtghM7hT4ueUoYCxwp7rHoWEUAtF3Ir88FXWdDNTCOlM\nAGpymuunem+M21DpeRriMWXgHPN66yUvwgMM8Uw4R2l1kviFbV2p1O6+ffbS\nzx2sYSyMgSIPDs9ta2pRLO+rsRf4Dl8IAYvOh75lfr5gp1YFP0m+JP2lvuZy\n1W6mTA5Fm770OCzIGQCDWNBYKFG4sNqnJjcY2Zws04R18ZpuDKwdAJjjfbCQ\nNxD1//CVzvPw6D+VE6JHA6IDScRGSqfyuet3tDjFyOjFqMne94fps/FvwmzP\nGUApFA2sEv/jvIPdb1NceH8qP0HWT404GwgQ3pJ95/iifleI31dm6GocFROA\nGYanJ/q1o/qh7pLXFDPEbXrx1+oOWycwSDLwliuQ8bqAbj9rGmIOvT//Kui+\nTxmwc1KpEMzWxNFiW1gH67y2FMe9/OxtYGbz6UQ9GIgrIBAvHbj78CeDnAyt\nyLi5\r\n=s68K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAn1QFWcxWGNg38TUfrc1RwJu9IXyatihHeVzNYOCj9hAiEAvS5La8mFO09gzL7ySjOI1/j880TLL+Jf7ehAymdoJsA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.7.0_1592716759655_0.46291149969552636"},"_hasShrinkwrap":false},"3.8.0-next.1592761163.334c7d0b613e9f98c70911d66d736f08074846ba":{"name":"logger-clearable","version":"3.8.0-next.1592761163.334c7d0b613e9f98c70911d66d736f08074846ba","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.9.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"334c7d0b613e9f98c70911d66d736f08074846ba","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.8.0-next.1592761163.334c7d0b613e9f98c70911d66d736f08074846ba","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-77HaTLyiBNDvyp9/oxlPneFO60PF2gQsv3SfzJIFLsoJ1lL1/7APyU23aI/uYNQgEr94kesg6b6QaM1eFRVL7Q==","shasum":"f641ff6bad6fc3d0f039c8518f5befb02dbb55dd","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.8.0-next.1592761163.334c7d0b613e9f98c70911d66d736f08074846ba.tgz","fileCount":5,"unpackedSize":22262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe75tNCRA9TVsSAnZWagAAc5EP/j0/nnuYT3awRTaiFZIc\nt3pBxPG1beb1KHdv3HUAxivEjfWc9RtVb1BDImShAN6fu+gyK/r9u6lO+NAj\nRCanlirDM3UTwb0q373oo9L/k8KMCNEiyqh+5IuYw/NXZVsVPuHp9F/SAHRo\nnOntz5Qstp/wiXnPT/huAgKi5vc1h1Wdzb/BAFHq8S4I5/ssmHw4OOFq9rez\nFXjlbGJhAICsG8tea19M4EFruNu4ecyh3dp93nESBvX8+k/BRiGVdOLtKapO\n2v0pe5whI8CtNifE/ov8rOPwixVNy1un7ugnpgNGxqP4d5u8qoa0grIrpbvP\nM7N46cuP1qOEFVurJhyfZA1RTMzvd96ohamAiWP5BcKR6YHj7jX2Z5zvXuao\nGaNer6dw0cB6U5rQqwMnHuly1pjLlH7Cd+S88NiqLAIYggcS4BrtM8cnVBGD\no7KGmuxnrbImSiiTXYGvhpKKQrnGZFbu1N5Df8GMJ0TYUr4SOW6ABI7blZeH\namKDBrKJTP4If3kLiX3LjbAFUEJbdVxQ4XyNRtOJD3sKIVHVtchZ2Tz36sfj\n2YCwAatiswNMYjcRo8+9oJqsgx+NmW+2oYVTWpr6meGqiGP7ZqF/XNh9OoBw\nh86CxUA+xBcLewpg2IyoqJvQvBMR3Cp7TCj5bALdGE5DcGCe7uQa9sq6sNoJ\nV7mE\r\n=KaMq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpQjYA3YZVhjnV9j5aDLY7tbIQ/7OVmJ4psRrC1ylaRAiEAlWiAPNdtamL72/jDfHQTPugN2lIBtJ/F7FxG5XeO8/k="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.8.0-next.1592761163.334c7d0b613e9f98c70911d66d736f08074846ba_1592761164524_0.2374335004699777"},"_hasShrinkwrap":false},"3.8.0":{"name":"logger-clearable","version":"3.8.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.9.0","assert-helpers":"^6.8.0","eslint":"^7.3.0","eslint-config-bevry":"^3.8.0","eslint-config-prettier":"^6.7.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.7.0","prettier":"^2.0.5","projectz":"^2.9.0","surge":"^0.21.3","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"334c7d0b613e9f98c70911d66d736f08074846ba","_id":"logger-clearable@3.8.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-NDTONyJzk+5ZjVntVvtLOUCAnoeJemA9ReMpmY4fNgyNji1jiD3yjdnDP4+sQpgRWThfaHh+cUmhOIl/4fwyIA==","shasum":"47ae5df56c17b57ff92eaf029cb74fc6ab79f9d1","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.8.0.tgz","fileCount":5,"unpackedSize":22205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe75uNCRA9TVsSAnZWagAAjrQP/jdlRKKFzVnUZ8rxykuL\ncUp/1aTpMOVzTbn0mNNVhHDkrYSNhpa8R6RKuOLDtr/R73O3dtdD5vpBgJoQ\nYGAkXJXXiZj9HbxI5gE+WcpP0EKhkNnSR3v/99Wt++uBc6t8v4NF+4aFGpGC\nmGIzqkdl8OHohnPX5Hxj/fOzry0SYBofiYj9rv5iyY0wFJnBWvVl9Eqfz+hk\nU3hIv+YooYZVp6JWy+6dH9HwujZ9D5aNQ34Md2pIUSZkT8kUSh7hgjmnhkeZ\nHYiLTIOTYdnZUFz6OahroHgsLp/Q7RJR3icn/5rz6sWA4ysNOt+W5iiWw2lH\nKVZIjuHvWlCixqY7YaVY1EE2nQgYJ+HuNh5/ub+c77GOZrwyk9PxHGUxwzaT\n8vagTB0JhYesyNq1mMzhnzvF3DGjasZonfyRMLTOhEzZWFH+0S9uYqTuwtr8\nJkWFcmuH7W+fdisakvIBgQ4A9sRoiwlOq5ZdVORvYU0I0xJiO6LX8PFaHTXt\nMOHoGUOV2mXebn12Od17ODqD0w+n9IbYLzHJEx/MLj8mxCZe757JwyCaHRdv\n631Gn5cycfYVYD2i0EyGwJjHNEb0eoLjfn6Y9rA+7YsMlpDhnmGGIWnfsmiM\n8yEl9d6ZoAtUC0Nay+bO6mEMRV9Svr4NrbSMK4jAW5dAw2hA2uHumFpk3xP+\nqkVJ\r\n=PDcU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4kYFDHE+GID6A9vIcZjAsFk+CqBhCH+IUdcdfJIX3PQIgM+w/fKhi2gyTFoWbHe+e0xoZ2fn4Te6c7i+/y3AOuGw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.8.0_1592761229026_0.2693971956768215"},"_hasShrinkwrap":false},"3.9.0-next.1593056999.337c7d233f384d0fb8b118456b620e6a00733a94":{"name":"logger-clearable","version":"3.9.0-next.1593056999.337c7d233f384d0fb8b118456b620e6a00733a94","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"337c7d233f384d0fb8b118456b620e6a00733a94","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.9.0-next.1593056999.337c7d233f384d0fb8b118456b620e6a00733a94","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-5u0Rbj28hGB65UweGeV3YTgneWcSEQUDMC/QxRCQDxWuseJxF+Yq1UFkqw6rUdipXkZUtzISo/JV6BMK8VUwLw==","shasum":"57e7cf46eb699421a5874a3dcc75faebe99c9076","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.9.0-next.1593056999.337c7d233f384d0fb8b118456b620e6a00733a94.tgz","fileCount":5,"unpackedSize":22461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9B7pCRA9TVsSAnZWagAAfKEQAI6tQVJfGdcXRLjQ8xxw\nlmhdc0YU69cLaBSndWlqN/0OxffIgEqrEwRzIcWrUztUZdeddipmbD3IaR9a\n2K5tnOplp6n/YXat+1Fto92WnFCrZsLJs/8HrBWpcWA7DbMqhNY/HIpOjEda\nbmtf7qln9tFSbDNesHnlp1LkxrbYqm6h1HcxEa1zm05UciIh38hgNnoynqwN\niCQ2ZZEaaSibwcKgt4beatIKB1wmidLAmasBaCnhr+5npQRMq7g/oGqJcn95\n/dBtcoGVpA+5LYeiXWca7/PBxvMTN9Ca3TDTJs2bajpm+psSFdNQbWzDPtCx\nkJL15IVq81GDjbkifwdoTIdiYrNv23UE0dOttzbhhXMhnJ4UmE6k2SXMpv/F\noHaENsGRADsLvreH/owQ97e+aMubGhDXchrFQJjygcDbZGJ1NOoGNn4NzNb+\n9SBZkxu22ulPQzhVsF2krj6x91hNbSXGewk9jLY1dxKsJBbsu3zssx0PlI8u\nv71v/P1zkVlhq5rC6Hs/rbX1ngz50sPAIMvEdL4Imzg59cojUomEO0Rk5UVl\nfkvqCvjv+iSozh/W+2yL+kHantHHDZpkEOqXmFakZz84g8P/ab6Gdx4bEOkT\n5eRzxnLHKDYN6ZQLyQbBheRR7IdQk/kTKXFa3LVNSOhvkcQEYjwuVtkcQkeS\n/Y5L\r\n=zqSE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfRY1T3aNEwzz/hHXsJLHXVOFoFcrwbtukGvgjXJYq3gIhANIrGLA+iDh2CRl3Tc0+wCB3JBWUuVSJUaEh8lvGX7XH"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.9.0-next.1593056999.337c7d233f384d0fb8b118456b620e6a00733a94_1593057000596_0.028112174085957342"},"_hasShrinkwrap":false},"3.9.0":{"name":"logger-clearable","version":"3.9.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"337c7d233f384d0fb8b118456b620e6a00733a94","_id":"logger-clearable@3.9.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-/i2eiMO6LlUe8fXYEKEJP2smnFTD4JzprRutQfQ9NZNyLHC7Ot2TZkfiZK0vLbAn5vSfCVPpBqYosl+N281cKw==","shasum":"16d14063008d949b8105961d8637ccd7db2b8518","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.9.0.tgz","fileCount":5,"unpackedSize":22404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9B8mCRA9TVsSAnZWagAARdkP/jA3fp9b8CuO24qWRqRa\n6SQTFuxPLHR3T+fAzOkqWddPoKueKL6lVms/mLP8UwC2P/ESZL6IfkpbDura\n1TBjvVDjEZUp069odovrYNyBjCafXsvNvRB27mhSGmy7IMTWXPD3Iow8JuX/\nWdgcmVabSLLhkxXS10uccCOZAeE+Za5VJjdizunacnXZdpmj23/l4r6BzZgb\noL8AUz+Pzn6ekr7cRZX5WaNrO4L4WXhEiJ5Bsxjq0Zcej/iEbFLMfYW3T6M/\nIofJ8APyw7Y31+BDT0Qpa8a9FWYm5/nm8n4oHVeIVWEJzsmu9LyxTxuei0BS\nsKPeTkWdEz9BZCVKnCl3FbGK44I9rsJWXfyLpIqPTKIH+qX0F8nPu5zuxdND\nKPlKPdRZrxic4KKv0fMWoS4QFpBzq7y7wrwsHVGgEUt7MHmWYOnja0FFJG5o\nzZLNwfjEHG/97KkgE4SUwqL1fJUtfXawmh/LkjBo0H6th2NXT5DZX0iId6AQ\n0vGMTa1HH2ROkW3CSlg/IZtK2qUhfdUH/UyHC/6VDuaNTSjPjyWXJUcMkUGW\nuumKg/42JvsltlQ1V4yJVvk7QquI7lnQsh6Vmp9TUV8+OX4/x9KMMjh32wv1\ndRU9qNcXhT4ag35YXbZrRM7wDV9F+uWKhKnWVMOLD1ynAwC2aoX3cURtaAu6\n2eiu\r\n=6UKx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKxd7Pd67dHgX/RUCq54kSqlOfscs/yMqrlQ468ZmhXAiAOVkigWMYMWnPJY98/JXog/Kew0CtabDcK8fhr5SW50Q=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.9.0_1593057061790_0.35426769192141694"},"_hasShrinkwrap":false},"3.9.0-next.1593741881.5c1c1a8f072487abad3867bcbce883890bcf5cc4":{"name":"logger-clearable","version":"3.9.0-next.1593741881.5c1c1a8f072487abad3867bcbce883890bcf5cc4","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.12.0","assert-helpers":"^6.13.0","eslint":"^7.3.1","eslint-config-bevry":"^3.13.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.8.0","prettier":"^2.0.5","projectz":"^2.10.1","surge":"^0.21.3","valid-directory":"^2.5.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"yarn run our:meta:contributors && yarn run our:meta:docs && yarn run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"yarn run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"yarn run our:release:prepare && yarn run our:release:check-changelog && yarn run our:release:check-dirty && yarn run our:release:tag && yarn run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"yarn run our:clean && yarn run our:compile && yarn run our:test && yarn run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"yarn run our:setup:install","our:setup:install":"/usr/local/bin/yarn install --ignore-engines","our:test":"yarn run our:verify && yarn test","our:verify":"yarn run our:verify:directory && yarn run our:verify:eslint && yarn run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"5c1c1a8f072487abad3867bcbce883890bcf5cc4","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.9.0-next.1593741881.5c1c1a8f072487abad3867bcbce883890bcf5cc4","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-n1/C4hDSGEHKV+f1VBDI82pZInlRMgee8RBxa3G4v52XbUmNGKuLzs4zRLbOW/S5wgYbvI0miP5f7c38DyljEQ==","shasum":"ba0be7183645755027c7dfbf189f5bdbfdea5454","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.9.0-next.1593741881.5c1c1a8f072487abad3867bcbce883890bcf5cc4.tgz","fileCount":5,"unpackedSize":22461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/pI7CRA9TVsSAnZWagAAS3oP/RZX5ZNfryHudPx0nuQl\nO4FqBLjUhYz7LhEWp4NkVQGYnc6XD7qsQqTVsQTB2Q0FacluoIwTEXba2WnW\neBntQAvD2X8c4vix9psXA2HYAaOKFuIorKSubztpCefX8ww0O2+3jBjtmZtR\nl55jG7gKLf8hcsoaztrsoYxugONPB4A9gSgzVa0trnwwGPoXHtgwHm+f/Bab\nPVXBbX7Ef6mELiGpFQKr19WvS1kSkMf1pWU5Z9G7bIzbxpJQhIj1o82wQQlG\n59v4bHI2fb4ROC2gJvKlY5yadbcnrpWKSp3gfDcDpSsWNqJtQIpE4jtv1YOk\nxGNeORZeRD1yM1jQDQI1TCUc69YuzGNGj0EkW7HFRQBHzv/7MHMiU4R/wMdE\n5VN+Mz18HSo1ynHO/L6UWj+6XDJllWlDEuK+CFX39bCOI6iEYhcCGUWdyGSa\nxf+c5BpkQXa2RhTJDgMhIqp8kEKHNbdYkfrtLi2Xigozf4pzLThniJixricZ\nIQcel29qI5VM+e7Lp13D6/X+x/vR2cx6G86AlbkjARLMHD1FdLS0Rj//2lu8\nGM/PtWfvYwD0/2eGsBI38dnBJ0Kq8GOBoIyK8G8T0kwuVHxyRFFTZnLn2ZZ8\ncwDz+k0LtIpVdPNrCBze8LwME4NT2rekE0PSmtNrkzYIF9lxTf4CnSJUVXdB\nkbbp\r\n=6HjN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvuXcWLNrFwngFf6i9j5rAfqgPaA9AcqYetlUdmI84fAiAe44LEqj1QmRzr5TvcpoI8HkKgrpSEM4Xx3uHuqQLzjw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.9.0-next.1593741881.5c1c1a8f072487abad3867bcbce883890bcf5cc4_1593741882682_0.5307437158202597"},"_hasShrinkwrap":false},"3.10.0-next.1595356742.eb8875ece49744220a8f3864173b1e5914b7f529":{"name":"logger-clearable","version":"3.10.0-next.1595356742.eb8875ece49744220a8f3864173b1e5914b7f529","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.13.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"eb8875ece49744220a8f3864173b1e5914b7f529","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.10.0-next.1595356742.eb8875ece49744220a8f3864173b1e5914b7f529","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-k8LNiNqk86nzJ1UFwDQYPwiP+HEfmJwunbHYCeCoWeiUh42fuytOS3g4naRksKoaWFpYUC3T90xsCrvXymUprA==","shasum":"164ad1227cd402f77fad5b6f688a71eba1cb3bb5","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.10.0-next.1595356742.eb8875ece49744220a8f3864173b1e5914b7f529.tgz","fileCount":5,"unpackedSize":22647,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFzZHCRA9TVsSAnZWagAAgToP/Ag8EiCCz52I3Phl+BvL\nL78ksc6Ee6A+3IsLDvEBJHO/i728nx3utcEvTW581s7yZCXEqN94N5020dRS\nw+VZQNU2X1sTNM8+f0NQory2m/VChUl02sipIFcfpwpvvIkfJyvuUOU0uE1W\nMIXS01eTaQhBwPhgOlesktgTd3hvZhbB9yEi6EPmATrUu5OpcEwbA7/jD0t0\nCUlPzSaR786MGGKQ7f8hQaS1xF4AFY0VZvJp5g+QWjgj1txo/c1QV26hzsk1\nOadt4+3wyEz48KNtcmp7pMQbes8Dhjf47Vf85sYSnoYEEyAYUUuirodj8kT8\nljs12c9dDnuy8kujKv54V5u34fDR/olDVyYCUwGfIHZBwYR7rN5LAyJ8hA3o\n+CW0/9eFPtrW1/bqkotomEDMrtaaPOop71tXqxLs+1Soh1RcFJAm6tYr/12U\nSsmdDBkLN/k5aHgIhs6dcaDXZDzKRVVgen/CLx+3LDUAoRbor4R+GOcxsSYm\ndg9dZYKW6tDJaQxDcx9QlB7cyRLji6Nw0S0P6ukj7BZyos6w7mWyfoV/rKxt\nM2auyBH0nGhn8KZOea+Wvwp3jBd4yymd8aJkW6Nkc5v7KQ/SJ3dIbzjY0VQb\nke0kqfXD1L40UW7jO1M4YA4tjyr0+aNTHcc5ci+u6FVUBXxtL/fvkqEDutKB\nMnr8\r\n=wtKD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0Ix1GJLGRxNKh/eHpkdMfx2sJbkubhbJrH8HivAuehgIgYR5PU7rHox6RNEjD0HUaR+YLyNmS1lZEg00BPOEFZHQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.10.0-next.1595356742.eb8875ece49744220a8f3864173b1e5914b7f529_1595356743428_0.7253643017165408"},"_hasShrinkwrap":false},"3.10.0":{"name":"logger-clearable","version":"3.10.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.13.0","assert-helpers":"^6.18.0","eslint":"^7.5.0","eslint-config-bevry":"^3.17.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.4","kava":"^5.9.0","prettier":"^2.0.5","projectz":"^2.11.0","surge":"^0.21.6","valid-directory":"^2.6.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"eb8875ece49744220a8f3864173b1e5914b7f529","_id":"logger-clearable@3.10.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-lLSK0TQsmY4E0RtuKNBOxLzgLZtMrOOzj7pUlFyARZhyFCZchElpc2RewwA52UJqqzJr8VeugEf9bXPPx5G9wQ==","shasum":"dc58a5a5fea780103e365905613fedd04061190b","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.10.0.tgz","fileCount":5,"unpackedSize":22590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfFzaOCRA9TVsSAnZWagAA9PYP/iFzD6S0iYo8CFPyZjzk\nzU+hAwYPvr16iqQ7+BBNbbjHWGBcHl1d4snJQyleMZ8n/iNxV6aJGezbSFm/\n0FNrZiRclNZbu2OlZEgzGT4PES893UQjdliRAcRK+MTJT9ax5/dLasuShS+y\nhaQjihIeEXZTurdqU26hN33C2CZpeAMlVP4UanDcWtKzOgib+00gIMan225Q\nYC4KH9N21wPhqF4fHtFWOPTglE9ECX0eTL+vUayKhy7mY2rd55UQcJoDW4S4\nmGe6gVKEG2X7K6Av57FjBqmNNSZ1dfLgpgaNJ7mgdzOSbtiWjMKrzwD3PnV7\nW7RRJYV0c5vh5l2M4Ua8uSqqO3TEJMXKYeMTw9zQQ6N/2CjZkKF4+0tM/SA7\nyiq9yzEcPFTUdBqYRY86mc2F20BhW/53I363lpQSH3cGxG1zKhm+1qgOD2Oz\nM55mVQYVhW+ZMC9wrTd16fPXw5xOy/ljqW6fnWT4AtBrWwwFshTZ7VYyHUKQ\nNebYDQD4Kf+TCeqmTdjfHiYdhPMPI5JBwfAdl0TFiu7ltNLKLn9ujuSaPati\n+6iWeSy9KIEpCxceSU7yNIZgWFvFNfrkZRparUCvdp0IK0fw8K0LBZfUIX9N\nFs4/wofdnc4UrKqHJVT54o7BcQXoKLXyhfVtMFwdLR+XUjjbubU2oS0rgDns\nm79L\r\n=6it6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEmV9WLFfLkRHK9JzMxvLGrvbGlQ7l2FKphLjdfxYhn7AiANSHlLCHQAVFyESxnqXJKJ/Z5lPDgSNYyFErbI9oC5dQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.10.0_1595356811520_0.9355164908818765"},"_hasShrinkwrap":false},"3.11.0-next.1596518375.22acd23d20027baa1ebbee6e2f564223df631b59":{"name":"logger-clearable","version":"3.11.0-next.1596518375.22acd23d20027baa1ebbee6e2f564223df631b59","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.14.0","assert-helpers":"^6.19.0","eslint":"^7.6.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.12.0","surge":"^0.21.6","valid-directory":"^2.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"22acd23d20027baa1ebbee6e2f564223df631b59","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.11.0-next.1596518375.22acd23d20027baa1ebbee6e2f564223df631b59","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-Ts9Wy9o8WhlhL3eVwAagRZf3Unr5U9AtvT22Sx5Qw6j2ei55i3nP1vL3wkfqBRlPW+8Ssdr14VMF393a5RWLXg==","shasum":"b301557ddda850aca34b397412744e2e0a5ebe1c","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.11.0-next.1596518375.22acd23d20027baa1ebbee6e2f564223df631b59.tgz","fileCount":5,"unpackedSize":22844,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKO/pCRA9TVsSAnZWagAAVTMP/iEmmrPhifGzKMva05ZO\nDx5u0jn1CRF2PpllqWyj7Z7A42jylWWDzz8tlA4g2JLxJmSDe6dscnaV/ttm\nTQ0hAVHJIg8iLxzeslh1OfBwK4jW/3qp6J6nz278cRsxvHtHxWD3WARj3L/T\naJbOJMgGn92veDwwuOY0W5qcT01oWsSinhKEBgL+FhKlnRNrMtDS1R6yph5a\nWEFTCK5YmWNRUgMBHijgfoyVlmDEZ3J7/QX24NAAWoWHBTxBPPYHEOvFHTXX\nQrKprsl2baSEs3/t01sV6Y0Gow3CqK29VawWIC9xlR7OKfJtIqGPbXg0FwFo\nEqNOiOuEv2KFvO6T01I+mYZOIj9fvOMv9JAjJf/iinC4YSr0AbUII/FxlteU\nYu8hgcHrDnQ3nTyTTHtAcj+KuP03XUSe1gMdjHdRAOEJxj+wJY6sHix3L4s0\nqQ7P0GPT68azHLNwVSEHhJR/BEVSZiUmxIYJmUeKXXLS4kGCo/jCSQEvaQ9U\ngkiNsy3sf8D+UOu9TBEuGon5BkgXXsL0m6tSVMMQ4b7IRnIz6VKugYVqUp6I\n4C1ZRGBBAN2nKffwnUcY7vddV0WbsQSEXCTCQxGAphTQDUroLWon5lnuogRl\n0k3RZ7cT8jE0VaPkaqzRWbi+T6MPIefjo86kLIURYpwuJEipjfB07ekcMzIV\nc6l3\r\n=/GJC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoB2HTZJuSJMP1NSh70tHv/VoCHEHZBl2/HjYSjgqGjQIgeinKlBXIdoe5boYDDIAM/QM/xFq3paPt18i0oFcr46U="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.11.0-next.1596518375.22acd23d20027baa1ebbee6e2f564223df631b59_1596518376995_0.3579994679251193"},"_hasShrinkwrap":false},"3.11.0":{"name":"logger-clearable","version":"3.11.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.14.0","assert-helpers":"^6.19.0","eslint":"^7.6.0","eslint-config-bevry":"^3.18.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.10.0","prettier":"^2.0.5","projectz":"^2.12.0","surge":"^0.21.6","valid-directory":"^2.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"22acd23d20027baa1ebbee6e2f564223df631b59","_id":"logger-clearable@3.11.0","_nodeVersion":"14.7.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-sM3iPUhAW6bYanggqz+z+YiP6XlPDxTgmf5DS8MkbB5f30cW21uV9UyP5/J2lljayknMXgAsdiz5MFCnsxpkrQ==","shasum":"0a327cfade17b673263e8b608f47870bc59a2c92","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.11.0.tgz","fileCount":5,"unpackedSize":22787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKPAsCRA9TVsSAnZWagAAntIP/iRz7AC32yfBVUvcoxkZ\nwSZdsZNMIDXNXXg/Fh63bBUxfDstw7fd1w/0HMaT2f+5i8GSotxzX85SmXyI\n/QFRIvqtOBFkGzhb9QbfYv12LdbXUK591M6XkD93hGKvZ+jX5NcqAQW9HEsF\nMxcm4/ZOtzySWyhGWJ+KNVAmCXMweNyTAd0Uw77+TMeXt1OPuBBuNCRUekjE\n+7N/OhsITGsY73jcqZcXrbMFScyfmej45tri2czTAXRuKghM2DfMgUBc1ge9\nmyFiWm30q2b1tIqqwUbYIOhbdUY/TGNOScrCk13ucYk65rnGHlTZoclfkaXz\nZhP2W18/TRxCGW0M//Mr/Y+WhDMRWlEoWweo+Mte3xcy0gSmCzghs0TX/r1O\nfC4btdDwCi6hNQ5mVyIWAJ8/8c3o36+cWoIsaS9EGmIN0f+ZY6NHlLgvwWL4\ntMbHhm1POXR/vA7+lTtvSyXPJ8t9dhvMi7qru3V9H3wRbPRYOvodmQnchAbt\nc9gxceB+S4VzQ1KPoHF8h6p3LgJmA6FK1bgwA7DDGZobFRFYNfXArlMRysC5\n57Cm8cNZNQvZokiUW+8iuOlERFuksSn9wcrwROXUjeCGNpOpMsNUmPuAeZG/\nFmfNcpSoPfEUhr3pF+O2YcS5jszQ5tV33wJ/vSzoBcJ4MnBnhJgalbIsq7oR\nvP+/\r\n=LKgl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8SiZ6lAdKfgodP2R4+U+fVOXT7xT6Yf8ZZOd5vODTSgIgD2TCd+f1GxLQ7cw0LuGzwVo52BIsds3wNRdOK/w7Cbo="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.11.0_1596518443742_0.984306190698625"},"_hasShrinkwrap":false},"3.12.0-next.1597697879.cc9044fce31643ceb0272d38975fd544a86d3b97":{"name":"logger-clearable","version":"3.12.0-next.1597697879.cc9044fce31643ceb0272d38975fd544a86d3b97","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.11.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"cc9044fce31643ceb0272d38975fd544a86d3b97","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.12.0-next.1597697879.cc9044fce31643ceb0272d38975fd544a86d3b97","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-VEJKCmI6o7lucSAFUAHKIfa7A/MEXPBoX0xzD0I6WQpBCc/3fupNi29DvxCTOBG8yQX7CB88L34n6U+lSfYevw==","shasum":"0c5fc888a299692686841b04f2763cce22a03699","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.12.0-next.1597697879.cc9044fce31643ceb0272d38975fd544a86d3b97.tgz","fileCount":6,"unpackedSize":23278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOu9ZCRA9TVsSAnZWagAAdW8QAKCXdYbTLl/wriUg3/Op\nuEcLEHjcof+w8QdmERtjSXq+hLAwqwIOi4K10+3RAFcgWF3ljmAByBNxX2YD\nm1ebItgqlfbNPs7Ci9PnzUAxXjEPd7hRM2MZtZ3sRYpPixqfywCDFDQAUMxO\nfZ3mCArPtLDwecWl/8eTwpmzHQJUvWP3Z425eySTEH2QEp9wzAmGJetuooMy\nHR9Ws3x9mg1cPeLdNkui5UsCgFE4r00+I/HDeSJXLuz4UyCbPKxcYhDM0qUl\ndL5NwPmPElLPt+fPrJvO29f3TYk5E3HBdsgvWT5aU1so5sub1k022Gb8YjKX\n3kpWqlktWvgedQSNi8US1KVHDqeZDYynbk4TmRG4GFmidWhePn+IttdXGLf7\nsynctuuxT1bSaxPAeFv+sC6bDlWPcUMZWK81jZB4A23ZpMyGJOF1tfWpwzDG\n6MujUF2X8uskhYbzxNBv5TjGf47jBYiZsIr3myYSloeaEWmOBoZjpaQWuFqj\n0ikhd/uB6/+2Lqy89UU/JZKGu0cls3sppNPuuYLljRjVx4c3NYxyryyODkxY\noHCyPjFDn5wnHqYTWErl8Zys1qHG7HKq/9q3FiED6feuld06bk4aqThhGUL2\nw8DQvH60H9/i/+qV3tehM7hUBrXzXVsecl9fCaSHtRrEdXMknm7FmwT/XqS+\n4WN3\r\n=3Ocp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1WJGkyLvsXlYHaIyrycK0/xKtODMZ6TBXPOPj9BLA7AiEA2oT8vx0YgVvS4YvIjYN5lprbL51Svfz5jqikeeLd6XU="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.12.0-next.1597697879.cc9044fce31643ceb0272d38975fd544a86d3b97_1597697880538_0.49580082629434763"},"_hasShrinkwrap":false},"3.12.0":{"name":"logger-clearable","version":"3.12.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.11.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"cc9044fce31643ceb0272d38975fd544a86d3b97","_id":"logger-clearable@3.12.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-NLhZ4uptl2X6yYOtG0qLLgSCa568Wr7JYYgGCRpPlEMYM9ZwwUTwBIUu+J67wp6B5oqRxfWYDybej2G/mVHBPQ==","shasum":"176b1e1f7708f7757c6f9015050cff71bf4682cb","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.12.0.tgz","fileCount":6,"unpackedSize":23221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOu+VCRA9TVsSAnZWagAAQQIP/ipgLPOU7lsM4jeuV/+p\n+7Ko09sPqfZbXTYI8VwwMtHEuyUM6FpV5FII3U++JBT1CA8wERlfs7SuAcvS\n4TmB4H2nlvwH6FhuhhqnYO4NtRnDQ+AXRhtwEY/n6vbSTUUq+12uDwcrO2Is\nl5c+HSwu8/X6YmwlehMT/DH4B4bqoLWmALquv9dN2IZKPkaSAjc9ZIM2Srvs\ngMg9H55BQxvKlAj7smT/7/iLpNuQg2oimnl0Bsxl4qqk3b3uOrJfaa+KY6X0\nWzpZ5pHUMNeHMgY+hnzv1UKikg045NxWU+ESILgQISqPP5vuT6biSHYvyyQX\nwDIkC8qXSQgi4gU/9+d8t0pjO6qS0LNaB83V/fh4A8lMqWhtoL53rwJtLRRZ\n3KdR/oCfGJHQBb0AVnR7OaZ89Fx9ydQgsOdVsRl+tUQ80l/QHSTDHKE0HcN7\nIVr06I501sXPRcPcIAmnZj/X4cPZoASf2V6RVf5NLdkZwj9mxM49+pJTFC8H\nfCCWlwe5/O/O0SbkfsL2yL6B5/A+WjSMAKHXVYLdfSOk94dF8U9LLQeAv2br\nTPsx6UYHQaGh0O5LlXvtVCRT8cPd+DI+XglRFut5Js+NHduIMXUiOdiSoRY6\nPaLo/CAU5LkY6vm+CDfxijx8Twjc5/XsaDNISpKuUnBo+5IrLgT9YV1qzBsE\nb+Ec\r\n=LvDE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvHpAyDFff2i2VwRDZTLtFd+0QcsppQXAx2K4tAKc3HwIgeX+7CXcDwMO0xSmuFXU3g9nnRWCPA4pAgxKirlP0KXA="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.12.0_1597697940502_0.33344077731539823"},"_hasShrinkwrap":false},"3.12.0-next.1597697949.90414d38f0938da964797dae5575558aa7e73f00":{"name":"logger-clearable","version":"3.12.0-next.1597697949.90414d38f0938da964797dae5575558aa7e73f00","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","assert-helpers":"^6.19.0","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.11.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"90414d38f0938da964797dae5575558aa7e73f00","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.12.0-next.1597697949.90414d38f0938da964797dae5575558aa7e73f00","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-cCziWFcws4DF127lcMT51HUPXpz1R/8F0/VZHzZLqpPOj7BDG5tWoXkwGbiG/I0kOaKlH7jkY4e2H2QljmtMIQ==","shasum":"21b040652ff827db97e1712b9afc29958c8bc1a9","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.12.0-next.1597697949.90414d38f0938da964797dae5575558aa7e73f00.tgz","fileCount":6,"unpackedSize":23278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfOu+fCRA9TVsSAnZWagAAgH0QAIPpkwfIEKY0oWlIgz3b\nN5BbVBFkOuLN99EGwDuZsJFfB0zFIXyua1pf2jDlr6w0v6xS++iBbK///YTr\ntSWJIR6riFkmx2VCpcrAzh9GdJxyjjXTbeISL56GljI1hZCCh75j/vb9DMSN\n0OxuYj2ADl5RfCFMbew5BrgdMsE2rBRQWj5qe3vLvIS++TbH+ZFxm4tmCiFh\ndrJ0sZnhceI8Xb056oTGfRkq11WCZolIfU07ai/I3ndj0e2PDiBJ60yQJCXJ\nS7K8O8wBFYE+mLF9YAV+Ix6JH2AIcCIv/hcaLypRG+bLvckPQraXcZ1GaGDM\n8sVxJWSlkAhjRLMyL1gQk/v2iWzIVAkZMyGllUHZJoBC2jM+hJIv4RiTkyDv\nhF0dldic8aDfvJnojTIerSymq0svpRXAo51k9mttJbo5VwvhgHCTrebOjkai\nWGtuSWrICkFtOcwuq0VYdRxJaLQ757Y00uwjYc/nYRaRRcWOiH86bnTbB+BQ\nvq9xRxJaslOnRHZg4613NkcVWeYTrsDAMF5BngWNfXGR7kYclQSyN0pUcOsM\nMLEl+jjTRiujtmPkUgLjEoP3SR1DJp/wyHNGTOwG/77rSEGqbn8Ho5w5RsXB\nW2UmDKyEV0Ugh6XsZ9PdEz2h70OPDWbbtYzmVU/iCrln3CrfAdkGqyYTxjFD\nr6k3\r\n=YDwY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq4t2rNqa05HRX53OFyK3YaIWnhHJjtdrAoMK+xLRBXQIgEaKoPWwxoo6TnUXwdR2gTAqdc6nKUXktIKwkdDmqAyQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.12.0-next.1597697949.90414d38f0938da964797dae5575558aa7e73f00_1597697951010_0.5245219291731802"},"_hasShrinkwrap":false},"3.12.0-next.1598187209.4171b1197cf58e9c5956a374945845b8ab80d2bd":{"name":"logger-clearable","version":"3.12.0-next.1598187209.4171b1197cf58e9c5956a374945845b8ab80d2bd","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.11.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"4171b1197cf58e9c5956a374945845b8ab80d2bd","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.12.0-next.1598187209.4171b1197cf58e9c5956a374945845b8ab80d2bd","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-ZmbtTjM/PYa66gx3b+3lUjDTWOJBX92q6nFK/NbyLuGxW9FG/2i+Cxm5QXYyE9B+t9q2IbYcd1kBWmLnYFMt/A==","shasum":"4fd8b445dd5a09c0a0a8f73be5b23153e0fa5952","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.12.0-next.1598187209.4171b1197cf58e9c5956a374945845b8ab80d2bd.tgz","fileCount":6,"unpackedSize":23277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQmbLCRA9TVsSAnZWagAA8FwP/0SF4CRBv6kgVMZq236O\nTUrA6o29PHmnC/HwfZCkZRcq8NtFlWq2hii8CJ555ns1cX56FDlpo3iCvRjE\nWtpkTPIj2P+ddvrr7WDB/1E/+qOx993LeIEmAgPxvFJCDk4rETsPFmvonRtp\nhY6tf7nmdL2+uWn+QGaUi4IjCh8TZ1QSpsurMZhn0yhmsPI1/+HANiio2UIM\nNuvUKB13HJX1UUhQKZhim2FRbmKyckR+YJLaPHrWgnoNsYrSpoPE1Dvdagk7\nRUimwfiCfumTdEHsoQou2IuAZA8f3s2r7NUE34WDiHR4XzFv+EMtba2wJOrB\n4F4611nrvOptB6lHtVIWSFBhYheg8cfp9h9Zmmv35iQo0WiLyWp7A6/jrMIh\n6t8nQ9CUH18k6dF4eyILYZ2r1qZYOnsasRTfSHeXpmIluIqWOO/dQkr2VtJ+\nwIVC5rzZYTOQSSIiGIxG9xDD0XPT880edprbXVjAMvUqUgu5KQFjT1p2xP4o\nkfTVreKpkf5RF4wsL6lG8h3d6YdKnkTVnDJbpCibmOT/Me0dBvgm1l/R41Fd\nSOMqFChuXmCtv/9wft7auU2L7ljvbMnQAlTnsQMGpyIZ1JukIu2br3bN1CDF\nVHnFhbKDUW7UNKqwo9sCfjlpqp0oRKNjAdkQFyHAxq3d0hKnb32yid8Q1gb4\ntkpR\r\n=uhBU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrGcYMc9l/pO0rUfggdv8ZYUfEG6jgvdAShU4lyb49jwIhANg7a06CmRCnjHDMuiOOqkKDjQ8LFOsqT0wogvs2LNU2"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.12.0-next.1598187209.4171b1197cf58e9c5956a374945845b8ab80d2bd_1598187210768_0.30033264309909646"},"_hasShrinkwrap":false},"3.12.0-next.1598780071.95ce67b352b38539e9cb44d3fecdd576489d9ebd":{"name":"logger-clearable","version":"3.12.0-next.1598780071.95ce67b352b38539e9cb44d3fecdd576489d9ebd","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.15.0","assert-helpers":"^7.0.1","eslint":"^7.7.0","eslint-config-bevry":"^3.19.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.11.0","prettier":"^2.0.5","projectz":"^2.14.0","surge":"^0.21.6","valid-directory":"^3.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"95ce67b352b38539e9cb44d3fecdd576489d9ebd","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.12.0-next.1598780071.95ce67b352b38539e9cb44d3fecdd576489d9ebd","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5GFrQ8yIpXKcVM5yY0DArSRlLDg9cCUsCn2P4jiHAYshv8LL0aH0qnycVHHRynDf9cTBGmcv8BEDM+6Bi7+zIA==","shasum":"8c259625f940878b55dc95beed16e099192c10b3","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.12.0-next.1598780071.95ce67b352b38539e9cb44d3fecdd576489d9ebd.tgz","fileCount":6,"unpackedSize":23277,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfS3KoCRA9TVsSAnZWagAArncP/A7QIZ0EXEODlpEGm/wr\ney3HwtivYmfYpBIOD4n8PI19V8r8vyTDxSZZRmzOvAkO4+00Cawt5FeXPcMk\ngN1bTjolp+1dmL7DME5Dx97IhHOkXNuSM/AHNbP67h13FVqWyBe6UOCYgdJk\nyMF9v+5MUm8NlKY/ekt5OkM/S2ZKOQvXRZg6nmxa7FqcgbGirVw8UwKDfRSx\naCvazw5mH3ibSAyHmi5QlI9PQVaszk/diNf7ZfkjYGmSbTjv3UwiH8vAqEQG\nYT3yAIowY+jTBrDXP6tn10NmCPnu9tlWdESvQUWWPZnraaJLCVrxvg6izxW5\nxFlEb/GMLv2aOP5g1XIGUmlFlKZNUKu3bwValxAnSJOkRQ1XyjcSY4nV5MHf\n3WG6PwkPnwr5QISqJ3+422DtThVSmlA1HcB4o1Sft4NtJJgW4tkgvBqTh8FB\nS6UNufpcQ/Y0/T16bUlDjzdB98zx/NSGxRpgQtEAqqHoIpZ9KDe3t4vTH8kl\nNStcRmF8gUfj2gx3BdvXQAGXCWaTabKFgeGdZ7jbmoj7hDZF0tpI+4VO3jsC\nC5e2KSqtzJjvriPRLf918FOpNJj9CYIGK1j9XXUN/qPIZ89v+EW+QdtVECdK\nK/TSSxLLUMBPvGNDRBcaQzJQwgM4852SpXM8cL9YmqkWAP+sLSYDRobYTTdE\ncYCl\r\n=kx23\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC6hCmMr9XSzS/zexXDdHU21qaezMd7wWbgo4zknN5KVAiEAlwE1k4NwZKVQakwBJMkA/NLoMembmea/7fPbwSPkQxY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.12.0-next.1598780071.95ce67b352b38539e9cb44d3fecdd576489d9ebd_1598780072439_0.4862942506888821"},"_hasShrinkwrap":false},"3.13.0-next.1599271053.86c1ef18d539224dc3dc2809dcfbf9f9c176e759":{"name":"logger-clearable","version":"3.13.0-next.1599271053.86c1ef18d539224dc3dc2809dcfbf9f9c176e759","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"86c1ef18d539224dc3dc2809dcfbf9f9c176e759","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1599271053.86c1ef18d539224dc3dc2809dcfbf9f9c176e759","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-96OS3+XT/L50jN7qziq77KmJwsIRO0WAkq0hw3g7H3l5eoMPmG5AAait7Ij2/S8EmFyc7HhiZiFnAqEzYctMPQ==","shasum":"fa4320656aa411b6dac9fb3d223e017399906a2a","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1599271053.86c1ef18d539224dc3dc2809dcfbf9f9c176e759.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUvCPCRA9TVsSAnZWagAAX0AP/1ODS3T+hM3v9Z1N8RXK\n8F2ckOW0+MDjxBhoap7/ZuDlipW7t6TqswR2u8GuF8zErA3H+tcMvlFiRkkc\n9K2W6iZz1Rc6k3ff6mrG9gknlqZuXpJHMZmUHKmr4SiNOQt0qJpxjGOjTHsk\ne8MfYfiWgjqkdLeu8bFnozKR1JFjHQzrpd+vf3rx52JZqz6OujdnQfUVcm+N\n9GWhubKzATBolA/gEnEmkPOdAxKOYy9OLyl4kn4/kifQZBQCF0YizRYYoFkX\nJFVvReQAM4/VCOYV2oUs9y82u5NET+cNmS7/2Hzpw319stf0Ik1EOZmUE3J2\n/CnZWYLiztSohy3kYd8/N0xXVG4iXcOq7CjtkP9t2woxtrotmaZlumhBtqkQ\n11xp/KgOXmd1gEd0x84rAZiOUDGuZuJVrcvQqnMkpEDWtdUQsP7o0LLkcg5k\nhJtpufSiPbN5Jw99mttisBX09IYDjTl5cEmrXrbcfksF7C4HHdaFE9YUVZ74\nFFwe5kH5xwA5lau/2rHiiNwcujpGMKuJjM2iE6LNQwttF0kcqIJIAElP9m8p\n5hsMwFRhwCRVmZJBkxdOPf8eCYX7CIaArs6vfSUo9Ugl35QbqiTCwEWvSzJL\nwqCSvbndiWP97LVdz0lxA7R/UFmIdLZgbwGdHJpemllzg+iMizvESjgFDnAe\nO1SH\r\n=JQ39\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBE3jja2b8hxHac1SGCwX7+WM8lsnnYzAiLepnSkGpQ+AiEAy79NPtFlUVnd25nEaIYupuPDx0Xj8c0bLHMzY2q2A2E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1599271053.86c1ef18d539224dc3dc2809dcfbf9f9c176e759_1599271055354_0.6740459916338521"},"_hasShrinkwrap":false},"3.13.0":{"name":"logger-clearable","version":"3.13.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"86c1ef18d539224dc3dc2809dcfbf9f9c176e759","_id":"logger-clearable@3.13.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Ucd1HaRs22KecoSyBBTRU0KBlzX8kJREPoh8xmZOvsSQVNLZ578TrdeguU8f8kWF7V9pUtsLbpwxygZJ8bytSQ==","shasum":"c4375783e28ddc9d52a714b6d705d9f5ce0a2356","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0.tgz","fileCount":6,"unpackedSize":23437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUvDTCRA9TVsSAnZWagAAizoQAI3KnlXBklNEJUKxOzZ8\nAWwM4zLhYICDf9ozAdsX5M62/cYzywhVloXU4gYE4YkNnYX4zXlp87b3S5P6\nKrdpls1Dkkcm7SzfyduTuv5QkYsbn3ujuislBYN9grE57Xm/9aT4grEO9R2b\nS6KxMrzJC1wBoGoI1YakKQ0Hys2yAWrRDaC7oHncqL3BBvp7JPVkxx8Vn2Ly\nCAgCrB+8N3jzKiJDtv1UoZKLB6rK0GcKkNtSRp1zSzYaIipNKPESRgieKl0O\nCBCvUBbTgye9v8/qXNAjv9XQqPqxrMEM6cI/OJGpIZmFJCmBdlFDd/cMgCCM\nIgb2l2s9l7HOt/YZsmZMu/Axj1ceZTi5t/YWm4i5oDa0tnCJwN2Uh8PPEWkR\nL0bsis2HRZycjzw1lKwDNzmGcJfYwSSKAJ5AWu/nz2LKYdgkOr7g+zOTmTnA\norWnH3p2wOosaa4xPwIMtdnNKYWWduwHSCiBuC/5zQO8gGBKYQLO4vB8djxU\ncp1+4zEZk9YiujNKtG1p/ekjet0SAKbaVrP66uLSULQdHQNZQcHOa06WPbxc\npcNcVsp27SiWzAFL04e4XRPZ7zR20M1l4iSko/80YYEmjPjr3EIqFZF1Np9k\nWoBlCnniw162VqIcn9Pe33PPmSP/WCB8O2ljezr+D8Vue1ZGo2LDSY0C5lIb\nZNqi\r\n=O2VS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbo95191ZJpNWx2utYnPr7Z7PTVawCx13h3lCtJCUoPgIgCnzEsS1Xq8kcvzCVrwuncLHzzhAWvQvNtLjTkF0C4/E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0_1599271123164_0.24709636799891954"},"_hasShrinkwrap":false},"3.13.0-next.1599394640.64526d18cbc96c8a294d375c07c603a524b02725":{"name":"logger-clearable","version":"3.13.0-next.1599394640.64526d18cbc96c8a294d375c07c603a524b02725","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"64526d18cbc96c8a294d375c07c603a524b02725","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1599394640.64526d18cbc96c8a294d375c07c603a524b02725","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-H8K031c7Gh/TWIsgQB2kEntbVQjP+0Leue7lK6jNExcotRu8ZLOT6emSIVdRuDFW++UMOu5Q0b6kb5WpNZ5A8g==","shasum":"6dd3be3028083fe345995958be48775300845899","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1599394640.64526d18cbc96c8a294d375c07c603a524b02725.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfVNNSCRA9TVsSAnZWagAAvjsP/juDLj1RG43l712BJVgO\n6tjWbsCIKLcIi5Yz6O9a1rWa04rbRdnpZF4Zpc88WscgKavxbx3A+naTrK7h\ni0bvlk+rG40hTipoKmeEVgN8/rrTGZruiteYHf2vKDlTzbSAEkSzuFVpKDWd\n3kkdXJXobs3i4zTMcVgMpg5TEPGBvrEy+fpV6uW9TJx+7SAa26IkrUh8V9bT\nOHpXF36hh0lJJ2xr/XM59p/TEKUTsX+zaN1gRj88seOFjwYs9xqV4T0NegwE\nAuQBUXlSq5sVXBkqSAJ7wfBjEfkBk+cq+l+Z+Dfa2i2JMbis+jIDToPY2Tm2\nc0BJ6zOgubKncNY0EWTBAUza6sLPXEmy4eQWXXtj01yBKAlgTVoMLi03MyOf\nSMkyKX0e8Vz88XjDPwjYBWdSlcIooSCJDdS1OSmH+Y118AUp77Hsj39UQxYU\nCmIh1x87doFldTUrPTpj48ibWS6gukkNjdbD/gqmfDuIicYnq8HIE/oOdDor\nh6Qy9UczK7c04Dxv4ZbwsjdxzHakBJtCOs7TmBzJNwxscHIeGZFrWuDq++t7\n51vWaFvY48DwWkeD3Zoo3ld63wbtpPDGqCGM5RqvTy86zhVOjOOOsatA7CF9\n8yuwrSQ61MnKLgGUF+U1KArZXmgOcIIq5mwL5IuvBE6XUKDObgI9SatFdLju\n0VMO\r\n=SUC7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICx+MRix6Ou2tBvPgqBdZsIe2hQ8wy79ngkOns/UYPryAiARHHz9toBlBySBuAfufkZ1WtYf8IW2SGvQTo6ZRZTQXg=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1599394640.64526d18cbc96c8a294d375c07c603a524b02725_1599394641984_0.8434945016416382"},"_hasShrinkwrap":false},"3.13.0-next.1599989875.5f8a24ad7b508c990c975ab3c23e43dd5773be71":{"name":"logger-clearable","version":"3.13.0-next.1599989875.5f8a24ad7b508c990c975ab3c23e43dd5773be71","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"5f8a24ad7b508c990c975ab3c23e43dd5773be71","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1599989875.5f8a24ad7b508c990c975ab3c23e43dd5773be71","_nodeVersion":"14.10.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AhF9bgZyMyBs3EI9eTzslkl8pvHFG4TY/Vc0PjXDuCWp8v6pBsoAq68k9NAQt9vBiO8mS/KFCgXFeX17th3s1w==","shasum":"de8de219d9c065161f252467d69380b9709182b5","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1599989875.5f8a24ad7b508c990c975ab3c23e43dd5773be71.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfXeh0CRA9TVsSAnZWagAAp/QP+QHpbJXd9WDA8QRM15ax\noEht5Vk3Y//0zH89vLfUsGQJNIOotlHU/qeo2cf/ZGPWeuASNVrNpDKkPPAm\njENNmlm0LjrfddU/VSjVmHNvDSvnn+Cr5mXYCjw/ABq43PyDRVGdNWHcV1gQ\nMD/LfrPW4UD3zbcqcivyfFelT9MKQ/hUzHT2nmQN+b7BRZt6d2z/gXbWYofq\njiEz3DT37Py+V0cD9lNxfXBvDJeMMkPU4X3E1zFOG2Zd4dErGDKxfIHvnbZO\n+cfcEgnWGs0FqdcnxoG9w8/HQY5uVoQSh17MgVGaW/AdRQXacsyobvjb870j\n8vZEEPKkK3uUtO66G/v22AB1HxkOxYB8OuJnIi4sEynOnvRvViraQkornGin\nRYRjMNIYWpt74HilJ9ujGqpZ22J2eazGpmPsz/rUfTWmNCmDjaLImcvTsZjs\nAuOH2fcAF5QyWnwTxV5OzNkpyQbn+AdE1L3L50REpQWtnWcnZ0MDeYUQUxqN\nZpjR22NlzPu4ho3JDjMfW0mKjt1BmnoxzdkYmeS21kBTw/1gB9FgtdP0X8uA\nVhV6NjcJ+Eh2ii9rG4a1h0WZCB95MhQ6SqR5s78Wd8QfnmVS4lufwWo0jc5/\nUFHuHXtTRDbOlJCzBlnHf4VYzVcJEo3HI7ybbEp7wvWPCv65ygrwf6vdR8hH\nxoyL\r\n=MPQm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGLGBDVS2y0m00N+zub1x4p/301TbkHshR4P5qmSQj0aAiEAoEY/XvcM51xTs9QsHdMiH7756p98O7uN611XxXCxEa4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1599989875.5f8a24ad7b508c990c975ab3c23e43dd5773be71_1599989876472_0.743323897587252"},"_hasShrinkwrap":false},"3.13.0-next.1600601385.62bc9688230c088464598443357b7643889298d3":{"name":"logger-clearable","version":"3.13.0-next.1600601385.62bc9688230c088464598443357b7643889298d3","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"62bc9688230c088464598443357b7643889298d3","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1600601385.62bc9688230c088464598443357b7643889298d3","_nodeVersion":"14.11.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-31ui1TxhFosjVW2DG03O2yBqZWn/J96xXMrDGj1XnW9Wd0+fKi91L0laflbc59Ul+V5d3RdRqsEACa42xhTiKw==","shasum":"3ef997693b79d833c110a2b1ae8f3e3bd0d7b056","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1600601385.62bc9688230c088464598443357b7643889298d3.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZz0qCRA9TVsSAnZWagAAiD8QAIqz6SGln19zXxJwCqjV\n7zvgdiOJPCO5i8El5BM4fi6pXC33MBPBxPc1pqR0CUmlFtEm+4Z8reeUuJhK\n60NIi65pxuYSoQThOXQcaHCWI4M2mMtx/wxoNIrAydyVdOtxMAzRaRMkJdU/\n1ZhGQZ+7SDnghFcjcqswT/Og7agj0tUnrEMEeCfwKyGZQaKTQlCOyytB/a8C\nw7B9MUdsT2m/bSjqpDn0XcIX02sVlWm2MuSJlJ//OMF5b78zShTvWBFPSh3a\nh3ltls1D59swGPcC3a4J7emva13CBIxDz3fH8x1R7sc5KficgzNxI6wHqa7/\nSo1QRen813iShDBlR/s8yLDspcXbH4FI1CnbRALwShs3BKZ4e0hydZC1lCiF\neDKKENPzJMzbP1Ce3Qt9kiTekzTdNLx25IkNqAw7bJjB+xm0SH/a9zlobuwv\nTNvbsLF2XfJD2831cDZBHRY5Sm7utPEpynKFqMu5/fZF++7n5I6qPDk0ohuD\nWCZ9VDDMKQcf1goauRQxmwll2H3/RHGi4lhxrvZpoShLk9iXW/kvSzel2I8B\n7XfBWybQqO5M0VV1/yH2V/h02yXG0tx5IzTgZziR++hwUZ3z/Jj8dViyqEZK\nkNlQueP4BbjcS9DLPqZflQUxHF8aPIwwLyRXZ/eUjW9slhHif8cBAYNnO32t\nro/3\r\n=Lu3o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+bAdKOqUrtKM3Pju9kGjR8KgRZBHvUJsA+OHAhVFlzAIgZ3DFPt8ElrGAkCFHabkXL9bXohWu0e4CjloFvwCXz4k="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1600601385.62bc9688230c088464598443357b7643889298d3_1600601386446_0.49751817119730113"},"_hasShrinkwrap":false},"3.13.0-next.1601210742.748e54842035d722290c6a52d6849a0504ba7bdc":{"name":"logger-clearable","version":"3.13.0-next.1601210742.748e54842035d722290c6a52d6849a0504ba7bdc","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"748e54842035d722290c6a52d6849a0504ba7bdc","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1601210742.748e54842035d722290c6a52d6849a0504ba7bdc","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-QRQTtO7Pdv7pVeW2/1ke4igjS7o8G01MgtzUwaxKkrsCTSWfUE54sdNgv1HUkpjI8jKW+tikBop1+Mwu7WVuvQ==","shasum":"235c4c2a079b9d9f1e9ca34d0ecb35fe2cf10dc7","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1601210742.748e54842035d722290c6a52d6849a0504ba7bdc.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcIl4CRA9TVsSAnZWagAAK44P/i4mscSwcajOrBXArLuI\nmfsyrsqHMy6YAhMEiIvZSv6WrDRvvET48khVlJCqCKvyiLbWi/zlLEIJjTBD\n1VXTy1UtiLkOAoWmbZfI6jVazpr1wO39Bum/H9HsSWpFbvJM7zZE0MNVQzX5\nPpLUvHc99lBjMcbtPMz4P5xlLjdXpW4RmDPxE4O2pinZB4nL8mFO8x63AhU2\nVi4u2oxs57H08ih9pDsT/wxKg32gbqdhHbCp2X02AS1eDzb5boPy2NLce+sM\npVL36inrhN39q1jjnwj48u/7I4hi7U62qrvJ3GXlfZHIVr1l0gH7vQ8atSjt\nO8TRAfo+/K8aPpyNXw7HB/OTMcc4Jm2IupfG6Nir3Y6uVKsZ+rdlMWXPJ2Su\nBjFjKC2LRaCZESVSdcCiqkTypRTw+kaKtAe6VXJIKIAuGUIVSgM7NLUq+Ww0\nOFU1CI5toGQR7gHZo/IvfOo8J0GiOP73J68j6qouZ/v0Cufy0QuXV9PlSq/a\n8czXS1/Cuk3Dlphf4mRCsqWoG0k9dcebpVjvFSuO+LcOcHQhUcU8shk8wizT\njbJBKAU0+XZuDUdz9xLTAiO/CnsPMoX6WzrRXuNhZcdXSd7cggkG6vJ9LmS3\n8KRo0EipoSgFhlN6pYpAUD5pRYFJ3Sve3YWFXHo8babQEJi3pGmdT4JRgt+I\ndt82\r\n=KidU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwPSAwUtVv6nGEXDC+tPWh6dum7Q9tDQbWA1hi15JHvgIhAMxt22prrNBrA7MV3G+aVEvWiBMbqtY9yzPqWN5aJ62M"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1601210742.748e54842035d722290c6a52d6849a0504ba7bdc_1601210743910_0.9726483970194879"},"_hasShrinkwrap":false},"3.13.0-next.1601215567.2375cd8e312814fde2e67b06cdd51b9b34997d6c":{"name":"logger-clearable","version":"3.13.0-next.1601215567.2375cd8e312814fde2e67b06cdd51b9b34997d6c","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"2375cd8e312814fde2e67b06cdd51b9b34997d6c","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1601215567.2375cd8e312814fde2e67b06cdd51b9b34997d6c","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-m6YTOgSVUsqQrEJzkLiYf0bfhkOr2wjar80vpNFe1KinZiXEVkXXS/eV9ILteW4KPkchQxH9VJaNHx8/Yv5B7A==","shasum":"da4737f640023e2d8f3f3323a7f2c891b49041b7","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1601215567.2375cd8e312814fde2e67b06cdd51b9b34997d6c.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfcJxRCRA9TVsSAnZWagAAww0P/RbFG7KfPhfVSgpuweZA\nxe2OApQbViY5WNDPVPqSbT4orDa2N5ewSfEfy7iJVo5wENIRlGDBqkB2oQgu\nexHFtztqzJoaP+9OMaK1t+WlWP46XOt1trHBewxvonOL9nNoOkfhkzQ+fPrm\nnbcv5NpCouK3PeUqs1OXgpl6OY20U1TtorfMv5meAyhc5uGXIJpfqTY4YI/2\nS48ddsD1rtNw1Auc5a43NCefYngzQQH/FGCxyllNq5F5c7iMxWIGPfnzVRvn\nBQl4GRZHvB5Ty6PmJ+Fo0l0fQgUPrsDSG0+1d9YoFf17WlHlrae/PMzK2w1O\n5L1ewnVW8ZJ+S+OX7zAa4Pw//MtWNOuT614Bo5QtwAa7RZlhaQeYYqDHFgBh\nz6ersUplE32POlfl5i43N7KBe2aSFdkZhskacAOZqMaNH1gr8q8j8Q+dyCWz\naaBVAAvC9QOwT5nKyjVZs1FZ60rYgUjSNc/R00SHxhxu+QXVwyc1MbzhGr/r\nsSwvb+3u93pLCQ1yZxih0pt9LY5kA0I/x6Wl22Z5WQpSz8hp0hUZVnCRGzG8\nvBtUfeBzpfVoYf3IhiGX/qZxrwpoHRDx+AskvjJYaDrkzYpPlb4InjjxOsu8\nthxMSkoKfNN6FM7ExUfM3P2wzUgZHKmeObgpA2ePPDKPRXa043nsdwBfyt63\nXpKY\r\n=nTsC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjcUwwOSVyPr5i2RJ+gspXSuzePVR5ZfP7HMnSP4UYnAIgNUR/uzYAzqezGzUVQFuvuesYp71Qz5PPJNvgwDlh9xY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1601215567.2375cd8e312814fde2e67b06cdd51b9b34997d6c_1601215568732_0.6372600673176287"},"_hasShrinkwrap":false},"3.13.0-next.1602409805.0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d":{"name":"logger-clearable","version":"3.13.0-next.1602409805.0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1602409805.0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1jl2f44xWrssChEQzRZdoV+Q1LQHYbmFDNbIDdbCDONSiNbWjE38qOUSdwCsyCTHcYpKZthfMz5fEyev+veZZA==","shasum":"bd1c16b8302c3ee4fda9f5081757de5a9b193570","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1602409805.0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgtVOCRA9TVsSAnZWagAADAAP/iDZLXoM4aB+ffFs0QsE\n832GAJoZhYwxrTVznUYGoRhUXHtuOooBQ5WRM8MjmqAoloyW9dTHQvWTYMVq\n6BOhxWKt7VSPJ8ZCnLkVluOZN0QFB8SWoA13Yv4S3apEBXvc7dA/oMXm0oTw\nPtAZDtHmXkssV2y2jMBuiHFishja8PeTGYtjcfsJtXtKSww1zzXCeMYRsZg6\nebDQ536d8bI8uXK4dxXvy29hZW8URxtmy+/PrgZuLP50e2MJBfhokDF0F1+H\n784SGyMUs6fl6d2NBRK1DsVVxV0asn0Ke0IyDCvurGBLkJrAcUrE+btGI23H\nWOrZ+8YE2dymlmgW31dQDZxFkpRoySwCIvOhfjO+paL6yfvYmfdikKwCtZOw\nPJ5viPJTbLZyM1wxaWbEuszejZkVK7SIgGL/nAA0OhRdEsW07DeplFXvSpLR\nwNhCp7GLurih5vpm2cpu3oGUX8JcsWYCcU0Z3tkLv3bcYHBMKGKXP/i/rVhC\ns7ySQ3xpmpkOVcb/+H7U0foe2Vv8rwmYz9BKkFL125sEAdLVCocJtchToQ+Z\nNKlYqeTy+vzoIHX/4cInGWgyOsZVx0pEE38LXKS+XtbNno3uvlnvV+5nPb43\nDaZSnln2H2JUV1QWeDzo5rDaKeuuLMygusGbYcQVQd2YqmqwwY/IVgpBgV0s\nOWEI\r\n=DWuS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBupAagGWzYmNFAde5xx/rJ6NIU9IpT513n27j86HfDSAiBPid6OarMPFfZ+h0bAAGnhknaYiFHl1nsI9PYuIvQXNA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1602409805.0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d_1602409806530_0.30054345000217597"},"_hasShrinkwrap":false},"3.13.0-next.1603016770.390bea4d211d18eb8292970acdfc54928ec9559e":{"name":"logger-clearable","version":"3.13.0-next.1603016770.390bea4d211d18eb8292970acdfc54928ec9559e","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"390bea4d211d18eb8292970acdfc54928ec9559e","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1603016770.390bea4d211d18eb8292970acdfc54928ec9559e","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Dw2nAfJgEw/ErRwYlKcph9STUrHe3cAvQYG63/RkeZt6M8Gzh+WwsrxeBONi0IeVEeokdkEuDwPkTuNC0xWJBw==","shasum":"4251f49f411f034078cb15f864e999dcf1d1b838","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1603016770.390bea4d211d18eb8292970acdfc54928ec9559e.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjBhECRA9TVsSAnZWagAAp9kP/22AhIoAuD/c/gpa2feL\neWmgq9Mp1c58K8j5ZyzbnWnQd/h2T5gJ+/SSHqONEsrZUqIpv9eN34aQIHNf\nKnAuO+ybf/X6Z6C/Sqq3epInCoATroFQZ9tp4KPyYoMmvOvqAuoPa0sM6H/Z\nIBTj8FikBsdCsTtAMtIJTS5JC/Df34w9EQaHIsSNaBSGQsdSRM9/48b6uyXb\nzOtXFtQMwkuS0oUqgFMv78PoHNhNdrnWJWV1jHTtosUu4Y0evdP+O/s0Y9oq\nylCfsVKUev5uaIaVhsxUJvKuzkpKnDfCUMmQW71L5utvN6LxOmAD4Igq/abU\nlDqpSuXrIc6eGSeCzBPiMiUre10oMtOiCV+7ABDqrOWpiGnMEcIuki/bjY93\nV5utiDb7+yeGGY07tooSDCs2sEhS7ch34ue23/rPYJW5M5vJoZLwrlasihHg\n8Oye76OO0hEfpD/G7FByOPQxnVqp5Ir+Aox6fk9EE/BX6QKOKNLq+kpBkWZY\nxrT6hzaSZPPdzyq792JwLRD7G6eEIoifGxEx7V0ZkwwzLhL4zs5Az/I0CCHP\n59LhjdGC7bCO0VnZXvGbYfkMqreUwXA7yGKL0W82aj8G/NtPc8ibmuDsrjDy\nENx3vT4jrcYQBlqGFzDUQ5iYQaaYLY8A+m3v60/qtDzFVbrYyAM7GlBkrdNE\nGKXo\r\n=ZeGF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrrxCzJvzSz+cfp/sSbKRPLO3dp7fVzkCO9xL8ousIgwIhAI3WiBOmu0cdc3ZpYT9LLZyZkVZzyOxYFt1h/3HFxc9C"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1603016770.390bea4d211d18eb8292970acdfc54928ec9559e_1603016772171_0.5958033520284765"},"_hasShrinkwrap":false},"3.13.0-next.1603627055.eed2da83f5ad54d36088d1fcfb8f983c498b6e92":{"name":"logger-clearable","version":"3.13.0-next.1603627055.eed2da83f5ad54d36088d1fcfb8f983c498b6e92","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 13 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.16.0","assert-helpers":"^7.2.0","eslint":"^7.8.1","eslint-config-bevry":"^3.22.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.5","kava":"^5.12.0","prettier":"^2.1.1","projectz":"^2.15.0","surge":"^0.21.6","valid-directory":"^3.3.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"eed2da83f5ad54d36088d1fcfb8f983c498b6e92","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 13 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.13.0-next.1603627055.eed2da83f5ad54d36088d1fcfb8f983c498b6e92","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-KUGzjmAL8i+UFtbzlO4qAPDRNHOGJl0b0ryDGxMUFVzaYEUF9G1Gz+XA3mrFo8Lis1+rEZ4YYcnrKJF2JnxAYg==","shasum":"77ae9a9d3d9b512b7b022394a267590c09b2e5a5","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.13.0-next.1603627055.eed2da83f5ad54d36088d1fcfb8f983c498b6e92.tgz","fileCount":6,"unpackedSize":23494,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflWgxCRA9TVsSAnZWagAAhQgP/1BDJspEnB5ntscDbpn7\nK/sCI8w3BdGmTIIqBFCHewZQuUOqJAA9Azhppn156xzNYbJ16kP9vJyB7Svp\ntVylKLjVWHjq6K19yQt00X2P9aUl9EPfHHdz+joWhG66lRMmFR+Sy2MNqT/g\n2H+10q70mQAWZKrDaAJXoVcDFnnNMZShFXwZeFZWl7LxPUqra6YUKQhjlJ/L\n9LUjTgexJ+bayJkAIl3N7pU78ZlW5xoF7sfq7pqo4Pqfau2leyZVJlLIjM1v\nOVAukhHGYqwg1hk3RwnsnxsIgxw1Mvafja+gMkGeeydw07snQn/K709jvhfG\nPRmfjd3TnD41sQxULwHnPe4ymofXPTDeYAqkdO+Dz/7OgiyZ7ZJHaj9kQUfx\nkG386TVbI99n936iCULQ+Pxj1u21IcLF1Avx9/5Lq8N7ZldR7TW0fWvQgaal\n02Jd3KXf4Og6MwEJwNfk8TEbSflpOYnPNyQ0o2LARLQ5Ie46eNIq6B90L9F+\nlKBZuxo058j5Ej7ybSQ311bg2ejGiTlTr2z3UK4fXsRvI9RtNiy8/Yc3tz4T\npC9F077OhLIaWT8vjvDVU/4KxTo2yNgX6bxWDfe1Wnh12CTZWHPZCpnja0Xn\nYd9VYtQeekhK2i/KmtWgrbgji4SQ+ELkN7U5C5dzmS3dBgaiErktsNl1E0nO\nfyVh\r\n=h0YD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9h/cpr+75/iiRrVcVOEDuT3VKKyAL6FQKVcdhpdGIzAiEAujUR/aDVkmphZmmjrCPcYUNYM0k04Wiggf84ZcOWaAI="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.13.0-next.1603627055.eed2da83f5ad54d36088d1fcfb8f983c498b6e92_1603627057239_0.6063672575888408"},"_hasShrinkwrap":false},"3.14.0-next.1603939351.014629fcd2c126a66df899fd31d637f2a81079cb":{"name":"logger-clearable","version":"3.14.0-next.1603939351.014629fcd2c126a66df899fd31d637f2a81079cb","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.6","kava":"^5.13.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"014629fcd2c126a66df899fd31d637f2a81079cb","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.14.0-next.1603939351.014629fcd2c126a66df899fd31d637f2a81079cb","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-yVxWPpogts0c5MkFIGilkUkqPjqMOVkGdU1ZudL02vSMXAPhGYiNPTCsPyQIW18LwWlTUcDOye4qjpICZi2brg==","shasum":"3eca41e069bb4b9e383c9ee9e93a17f4b8e783c0","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.14.0-next.1603939351.014629fcd2c126a66df899fd31d637f2a81079cb.tgz","fileCount":6,"unpackedSize":23693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmiwYCRA9TVsSAnZWagAAMHUQAIvZc0OyhJtcX8Dnxs0q\n1oPGrb7CWk233/RoJU7OwdUCBr8m1ZubTF4jQ1Gbglaj0XXH6xQKT+EtzatU\ntMeeedWpeU9cQMWcMmqTU/2PJXPzJlaW3Vne6R5vrBhuCAzAa465JO9iw9DV\naXBWU2bhuyNsq5TgG8bUvktak4C8VIIjwjxLnY97J6Uq7dslY67IE86RpEWs\nhvJMwXwz1iE1Pbsq1DlmIJXF0tKee2OV2Jb/TLMH4ChAalsKUQhefM4/kqNH\nE+R/T49FkAyWSuNlAMH8xSb5hWRzgsQCcWlJA3TiyYba5X1xXNeNl+IIL8X+\nz6Zy3ZEwH24bM7VdN0/hl5AONpuXSIXjW3RKhypAL30ptpP0VcbH10Tw8s/T\nw8u51MIAgFF0KP2zzkjI6sx92Iq3Dc0S8CApLySle0+4eoHOq+I4S3OhYtgO\ngSDsSKiu0IqfPv3V6ShbY8KbzC3q/Gwvn1jy41HRa9z4rQMIPJSffPAFKzsl\nYKEiSe3HoksT0+u4Kgdhvf2Gx9mdP+ku44XPqOUPNNjAqHdYAfEuMcQsQU3G\nFJOdjULj9lRQTB0CD2th88Txsxyn57NP9tmww8no+fxZ2PmYL6tLb/01PHmV\nhJ+ZIArT+jJHnVp4HHXeB2Jw/WPVZ3jNKQWquJOtd0IAwMXiIoH/Af9I7YuQ\nbwli\r\n=/RY5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxVXskBcrqI6KdCOlQVs8GGsRtSl7yw4/KStbtv+lDwgIhAKQtCVCy+heu8JVdPGO3kYZwDVA2bE7lBuE39NW02sa6"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.14.0-next.1603939351.014629fcd2c126a66df899fd31d637f2a81079cb_1603939352305_0.2513908347281557"},"_hasShrinkwrap":false},"3.14.0":{"name":"logger-clearable","version":"3.14.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.6","kava":"^5.13.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"014629fcd2c126a66df899fd31d637f2a81079cb","_id":"logger-clearable@3.14.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-E/NULj1oiUeXITk7pgLTBsDH6F9NhlHz/0NRxwCp9UvDXRIqC4fLq5YFj18fqSKAUK7a68R2rp6XcJMVkFZbsg==","shasum":"b6ba441736cae79d0a44d51eff2cb463da2b11f0","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.14.0.tgz","fileCount":6,"unpackedSize":23636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmiwgCRA9TVsSAnZWagAAQMgP/3PgovQusCxUhiH0y2Gv\n/P8gNyXMYw5TEgSf+m8f6MFtfR8eFY1AdrXrPVHA+IjaPZeytMA1rO06bBAE\nzDtuLaWGL/EVWygJCSHDsaosL3Azx74OreQbhDK5MhGEJwk/uop6SvV1uYk+\nOtBUdtxsS5MffrfoFhZUuC2YTK+X2Vb1MnOMAYaW2s/mfauIcg52MFNlm/L5\nP2aQo9U8qjzNHkaIs82/D7D3ZL2XrnkGHnTHXWB4/w68Av4XbH8/+Mi8Wk/3\nQAXH+zUeTz6jy9SFG7Hsl6XbfOQMfV3Ba2h1rSK/DkzLiMX305fwd3PLhRlj\ntVq7SqoLssE+jqjHUtn7J9jclRrIjxI7gm6vTDCGltN6MI03a8aQUE8PCoEJ\nmRmRjRnuQEaXoTa2m4ZzJZ0Y771oRrjThUgGNjOR9ck8psARqbbnM9J7tXJF\nDB9am+AK8noPx1EwxB2Z1ODRwVkmUdoerXeDcvt4p0YZaImQbW++C297IwWc\nvxwRvP/IO0iIGmKXcUwzQD7wmwPRCkM5akoyjvleVxTZTLgaBlDLE6Sffhtr\ns51gNsglpR4PDg2JWKaRjtQvhkZLTtFBXH/zfwsMstpNTcMU0e/lcFIcn102\nWItjlkHCCxpxRZZQ5C1N9I/aw36T67PsoeUEkWzT1O2c/G9rNu6BwibOWn67\nU78m\r\n=Jqey\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqDZTea2YpbOmYSZrl4b9JwBmi/G+Oxy1e3KveYEiZ6AiEA/gj0b0AovbMULlLOIc1SMlPoTiWGxd59sckBWD0syQ8="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.14.0_1603939359863_0.20832247058451037"},"_hasShrinkwrap":false},"3.14.0-next.1604237257.961c45c24bfa168165eb93f6d0ba2cea0646f8eb":{"name":"logger-clearable","version":"3.14.0-next.1604237257.961c45c24bfa168165eb93f6d0ba2cea0646f8eb","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["travisci","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","travisTLD":"com","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 15 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 15"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.17.0","assert-helpers":"^8.1.0","eslint":"^7.12.1","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^6.15.0","eslint-plugin-prettier":"^3.1.4","jsdoc":"^3.6.6","kava":"^5.13.0","prettier":"^2.1.2","projectz":"^2.16.0","surge":"^0.21.6","valid-directory":"^3.4.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin master && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"961c45c24bfa168165eb93f6d0ba2cea0646f8eb","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-travisci\"><a href=\"http://travis-ci.com/bevry/logger-clearable\" title=\"Check this project's build status on TravisCI\"><img src=\"https://img.shields.io/travis/com/bevry/logger-clearable/master.svg\" alt=\"Travis CI Build Status\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 15 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","_id":"logger-clearable@3.14.0-next.1604237257.961c45c24bfa168165eb93f6d0ba2cea0646f8eb","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5aEgYImYSuMepq1x/ml9wXnIIyaEL3We4bw35Q4bc3Eqm/g55Q/24HNTa5xRSeZcoNUnxb5UpLwW6Tjozc1f0w==","shasum":"e2a482f2deab02966ed2c099d422f24e4ff17001","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.14.0-next.1604237257.961c45c24bfa168165eb93f6d0ba2cea0646f8eb.tgz","fileCount":6,"unpackedSize":23693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnrfLCRA9TVsSAnZWagAAlbMP/1rH7Zt07+8bJG1yuY3D\n2/wKzTf94iT+4N3+s2Sq76Bv3WyrBy5cJd9ItA/H9Egz/2KUhbLoevhJtj+U\nO6OBhSKftMRLWLr3cY3xYXExNOUIlr95qVePsLPf+h+gV+48z7MZhQatwguk\nerS/V7IoXsafZUp9UQgrUaB89mXHns+k92OiGOrIHNGFPW2x4VIu6q93JSWB\nzAFxdLHiDx3snxWFfz/YwZnyiDg+xi+x3ujE9+5io4/TKH47v6ZTJ1eYB0ff\n2gyVpI6pN6UQzM0JdEd2gkDm8hhvdaxU5T5F2EWWLGQI2YeI3dMXR4/og4KJ\nxJD4T1s7EweMQxapAMaV6aG1i+4icFHDr1JaNYh7I5i3Fn72bifnS9lfb4pY\nwRARhGnM31lLb50jdPYHzZYadSyWR0hqyO77dZ22ivHnoBJKhg69O8XR1PnF\nvF7zcTIos/JIfaAM2i6aMNS6DH/1Afqh7rkJpa3hVFC7z1/d2AHgOm9dSE9p\ngE7Vc1ElRr9oc6splC1s018y95fwFKAAiBLQZqNNjwJX2sdIpsIutNtgMiI2\nTMw28C3/tS50CLu5FITC5G4bdHf9dHhT9KWu71tQvfFEzPXBIjK2z6xsdwpZ\nBKOmw6Gk8mzSyYt0VZxmv1x0NJBSE6OT21e2CATcOR31EwBRS8ajZN8rlnOU\nyeOm\r\n=5VrJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpNEVrLNY9FQvKf/IUXQw2lKXPNPfsXxrRkJBTAJ8m8gIgC8C3Ov0VZBncFpF5iOfUD2S5rLgc3Ku9n/4j8Lx6p4E="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.14.0-next.1604237257.961c45c24bfa168165eb93f6d0ba2cea0646f8eb_1604237258837_0.5165098971637543"},"_hasShrinkwrap":false},"3.15.0-next.1627427121.ea97fdcc55470f5596569ec2b91e9e90fd52e958":{"name":"logger-clearable","version":"3.15.0-next.1627427121.ea97fdcc55470f5596569ec2b91e9e90fd52e958","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.18.0","assert-helpers":"^8.2.0","eslint":"^7.31.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jsdoc":"^3.6.7","kava":"^5.14.0","prettier":"^2.3.2","projectz":"^2.18.0","surge":"^0.23.0","valid-directory":"^3.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"ea97fdcc55470f5596569ec2b91e9e90fd52e958","_id":"logger-clearable@3.15.0-next.1627427121.ea97fdcc55470f5596569ec2b91e9e90fd52e958","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-rhrC9aQ8/pqI9lQczYGHfDYH4CbkRYa8+SOTmOeeXLw2RaIx7cD8pP1c/BuMKfX9t3L7jNRhEBifU5GORLESdw==","shasum":"917cebfa6f96468418b278d9adb11167d0031df2","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.15.0-next.1627427121.ea97fdcc55470f5596569ec2b91e9e90fd52e958.tgz","fileCount":5,"unpackedSize":23667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAJEzCRA9TVsSAnZWagAAK4cP/RHWSYB/BHyfdk9d84S3\npNx0UH16l5Cyq1PfE9/uM2TnLiyoeezZt7ZultaNN0SNCvHvmdNNYL1mI3gG\neIpqUYKVXNK+6AUaxmNPoJ9TDw2D3rhaAIxXs9tkzoywU1ywvvsbNetzzCbz\nHvea6gxaJqFOx0DJoohMlUzV/o7P2AfYz3QsAsoSzaAIufqe6h4juIsQXroW\n8kjUut717sdIHBBxvKsAZ6YcvOS9fXRe6diS4C62nUykw560qHUTPr43h5KU\nWErLS0TYcEci80VuiKx/czCeWMJGF4gV1mNnUdueQm/FFmflhNcLCYILuVcx\nJ64j+AdwLNDLZrZSN8ZD4RLS+ZUi7+5Q0OBwRZ8KKwbgVDlxK2ippx1CFDo1\ntCkFr/bLUQYnkS3F0C9pI8ePkfD3l1CgWjxAwhszUSNGO1wHHFu4PXHbnujq\n3C8R78mWltOLVycnIdAQPNNtOO3WZxv1yhpOs8wTb3k7x+2KuXli8WDUiat+\nv87tg3gj53ZLkT5YJs/3I+HZcob4wazAGbMfNcMc4wm3Pqkf+Yj++F4pWJHU\nnOUGNC60VZaflY6MAcG4lO0M3LXmjJJEXfkSjv8Ex+Vw6F1mc99Zbxi2Z40V\nGV8MA3wRVGwlcxkXhqTLALvrn67nU3dAJJqWnduFDxr6gINVA6udp/QoIwUq\nbFUf\r\n=qVeu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAQAlaVy19NNfVQ94cgVVZVO5MYkjJ6gr69d4kQPPU6AIhAKC6uG0HWjqDX8SzMz36hpmg5gyoAHuzX45MhL30GZ5N"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.15.0-next.1627427121.ea97fdcc55470f5596569ec2b91e9e90fd52e958_1627427122988_0.8003854890834645"},"_hasShrinkwrap":false},"3.15.0":{"name":"logger-clearable","version":"3.15.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.18.0","assert-helpers":"^8.2.0","eslint":"^7.31.0","eslint-config-bevry":"^3.23.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jsdoc":"^3.6.7","kava":"^5.14.0","prettier":"^2.3.2","projectz":"^2.18.0","surge":"^0.23.0","valid-directory":"^3.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"ea97fdcc55470f5596569ec2b91e9e90fd52e958","_id":"logger-clearable@3.15.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-5hUrGExNhKTmuilvZkeNcTy5WLViezHewjE+wuSwaMqaRbpUZn7hrdOZFBF8okl+Oj1pPTWlpEdgQpoe4QVcPQ==","shasum":"69be6333f8e0309862350c7fc272ff25fd99f28b","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.15.0.tgz","fileCount":5,"unpackedSize":23610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAJGYCRA9TVsSAnZWagAAnVwQAJp2SVJxTv7jLl8xmACg\nSzUtyrWHV8EEUx36R6u9k8m1LXS9nhvMZodPjBQ0SeT4Xx9pyaOzDv1J8/fa\n0/nblqFzCA3x4g8eg1ULlbWUb9GEFx0M3r4JUI/f+Z32tohmF7S71tabaWFx\n+Iitw+/TxAjqEWqqK6NP6tV3RVzJaBMOpJFy1PjLh7igBNKIXJVDqXAUdZ0D\nEKz3iICmbw6+V6bOl+n8SVaUpXB+uomafJeuZN+yHq7HtE9FCt17mBPlbTGl\n5jrlFgI17GqxbZ1lMz9vy7rUZCJ3ijE6zx9JS982Lu2cvsoUhFJZIThe1XyN\nLz256B0ArPOYZWR3lvEpttCnYGu/42pxqujnn2oPChWugCUV+9FTs1annWVU\nGavoSYj7svn39R0t2lMt698S7onTzlWWffR8lYR7ATKjzvRtOlTWf4mRrv+Y\n7zIMaGO8fvkhNM7zYUxWp9LB0HWT4ZgNB7vL7cj1r9QO0qdrj+s16A0ZXvo8\nz4APiGTUPgahquLiTiRpIokk5Rrk73xzFvu+8YFsXtrgxXcj03DZi9wpbRjj\nlN48WFsDPghg9rfJh6ms3nfX1u/NLcm6aJucT0t7OvM0RXf2OIycFBynW+6c\nZX9uKRS+IyGHMQ0o06TBdT8jmovelumv7GIGi3KRbyJ/EIRy5mEepj30m2Wk\npKuu\r\n=x5dy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGy1CQdojIruNVC6xqwSTDGHizWxbBBaKhVfj64Vat5AIgSiSxO94d0O3e6zWf+12MeVhq/kQwkrzKw0gUOxu+DSw="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.15.0_1627427224678_0.8600927387956703"},"_hasShrinkwrap":false},"3.16.0-next.1627510004.55ef634e67041307df12ff52e3a1a82b1ff5f994":{"name":"logger-clearable","version":"3.16.0-next.1627510004.55ef634e67041307df12ff52e3a1a82b1ff5f994","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 16"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.19.0","assert-helpers":"^8.2.0","eslint":"^7.31.0","eslint-config-bevry":"^3.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jsdoc":"^3.6.7","kava":"^5.14.0","prettier":"^2.3.2","projectz":"^2.19.0","surge":"^0.23.0","valid-directory":"^3.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/index.html)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"55ef634e67041307df12ff52e3a1a82b1ff5f994","_id":"logger-clearable@3.16.0-next.1627510004.55ef634e67041307df12ff52e3a1a82b1ff5f994","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-N5FGZnx+WQWFfvbAnI5pWKzva2AESjO9KTmDMT30uSzGh+TmRio4PDpamfOyQxNjI0DUBfShdfkJuU0VaOZSfQ==","shasum":"2a48e0ce783061d018273b7d6a2f0e1d78441261","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.16.0-next.1627510004.55ef634e67041307df12ff52e3a1a82b1ff5f994.tgz","fileCount":5,"unpackedSize":23880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAdT2CRA9TVsSAnZWagAAOE4P/1PI/UuGID0EzEMmS3ix\nZiJpB0GML0niTyaxhaihk9LLMei1IcQz97L4AJFOth6b3673o26dn4cHqRtA\n6uLTfXFi7B0gBNZtq/dlHrF0FP7HP0rkJwwkULEHOTOFjAm9MAjlBvyPlU9Z\nVo2t/BwPXVljk4jIWxnCf8kP+AGv29XX03HfYXEKlM4QyOyz5zPMbc5+u5Tl\nnsU9QGht9fTefVcCW+Rxy0gAL/++TIm8n+EY21txINvaaUiZqWhmke2fxFTa\nr1gPz8waKlVaXOWpsGNmshIqct5+88114w1iFRKe2E8zdVE5HYoPygTYDmUH\nfelM9KDLRkNLidy45VAe4Bepcal5u2ZO15JHrQo4gSBgDCnE/3+WuSM+QT0G\n62I9FnSyiEAMgrrEfgBETkPDxkhzC+uR0QsoGV9YMCo9oBYKR0NXh7q4fcLI\n1VpkONPhuZGXUPWdOGOCb2XegPAoJo3VWswCh9BwkYpuO2173ifzKPNfuA2z\nAhzjMDkDs/YS3m2LSZmhIWa2pn1S1FmCvQHipmeSbzp8Z9n6KFuSCvREB99F\nlxbepz2Av/OW8DrBz5YsKTDLsdr48vTE89V6cjY0Fb6XRMFmy4DbFDd2OfG1\nnPGPb/LchPkrHZSfUaE81WfGakhB73X23XOH4Cy02eLwcj/vRgO+T2cSLt1S\nAyEA\r\n=YYVg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDt2D37w59nQgpxj37bOpPMQJemCiDSoM4tgxj284Sg3AiEAtYl63PEmW2nhTKkHxpPKO6kEiqtSuL0FPL/jJ1R3c5w="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.16.0-next.1627510004.55ef634e67041307df12ff52e3a1a82b1ff5f994_1627510006158_0.32840975077074086"},"_hasShrinkwrap":false},"3.17.0-next.1627597515.dd95c8d3454146ad0c5277d94a418f8f87426957":{"name":"logger-clearable","version":"3.17.0-next.1627597515.dd95c8d3454146ad0c5277d94a418f8f87426957","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 16"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.19.0","assert-helpers":"^8.4.0","eslint":"^7.31.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jsdoc":"^3.6.7","kava":"^5.14.0","prettier":"^2.3.2","projectz":"^2.21.0","surge":"^0.23.0","valid-directory":"^3.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<span class=\"badge-daviddm\"><a href=\"https://david-dm.org/bevry/logger-clearable\" title=\"View the status of this project's dependencies on DavidDM\"><img src=\"https://img.shields.io/david/bevry/logger-clearable.svg\" alt=\"Dependency Status\" /></a></span>\n<span class=\"badge-daviddmdev\"><a href=\"https://david-dm.org/bevry/logger-clearable#info=devDependencies\" title=\"View the status of this project's development dependencies on DavidDM\"><img src=\"https://img.shields.io/david/dev/bevry/logger-clearable.svg\" alt=\"Dev Dependency Status\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/MIT.html\">MIT License</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"dd95c8d3454146ad0c5277d94a418f8f87426957","_id":"logger-clearable@3.17.0-next.1627597515.dd95c8d3454146ad0c5277d94a418f8f87426957","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-8xj8gNs5zjI4bj84yZiY8JPF3M4pHIPSFn4ouvc9rwAn0avcvbHHtlk+TBuKW3EYYe2JWlyWS35bTwLX4tfcFQ==","shasum":"e86c11d65e270cb863006d91208fc90de1d71143","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.17.0-next.1627597515.dd95c8d3454146ad0c5277d94a418f8f87426957.tgz","fileCount":5,"unpackedSize":24065,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAyrNCRA9TVsSAnZWagAAnAgP/1j7HCimPyl7LeaCrgdi\ncf2JxV6WukySxZVhmIwqAqLXozdLiT0bPlRPWD9bgv48wOLnwlJgWw8a2lVE\nPEK22yJ/Md56MQx3iYefYpTxgl/wDvfH+jVlmFscl6pQNLnr7tYvyjtkyNc8\npgRTqFuwK+lQ4XGtXn8pAGetjhyoDmwB1XiQpHBy4T8UcYB7jW6C8J9Az/Of\nvs4Iy9o37MfTHaYN0f1VACROLf/oxzllHlkjGuu/mIMC6+xYDZJAxg4eu7sY\n5yMQNXq3UlpwUGTonV1eqa6ZsQLxT1Xiu54SeQxkTKKXSshr/6aivXEan4uT\nYb3gYpecXnNUhEdr/Vk/tUnqA1ggXFyqzoOku4hlAduc9y20lBsw8rNBKWwE\nCDyjZrJ6f+mPDlZ2nmtsl290sQQGu9qSS1fRA1yIbiTNJpehujaWeChku7n2\nzTMPHqsf41ApuBWn75VGAuI28lBYf7V9TJd2InxoZsDqtyIV4iJ0bXH9i6YX\nj27n2fyftcZmF8tiK1yNv+653IPnlCgL8RVL9/bCCvQ3Aj8EDXIrKLzm3cs0\n3ROEOfJ4hEV2WelFBPw8jjcbSSvxRgN6CQ2BRJmCWMxyQTm8Uf5QkWGCrwIL\nFl/ZxIKHvDNuqsnLotH+LlWFq4fphRUAlFYItnsVlVkuUOtVXaVrrLXWy2jR\nrrZ2\r\n=iP2a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUJ2WvRhzBdkPplaRE/qM7wW6POk/Fu2wj/j+bTO/ivgIhAO96OC3YVBZvtp8WQYRvuFvXXoy4NuiS1QzoU+76YPBb"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.17.0-next.1627597515.dd95c8d3454146ad0c5277d94a418f8f87426957_1627597517171_0.8000601252296375"},"_hasShrinkwrap":false},"3.17.0":{"name":"logger-clearable","version":"3.17.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 16"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.19.0","assert-helpers":"^8.4.0","eslint":"^7.31.0","eslint-config-bevry":"^3.27.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jsdoc":"^3.6.7","kava":"^5.14.0","prettier":"^2.3.2","projectz":"^2.21.0","surge":"^0.23.0","valid-directory":"^3.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"dd95c8d3454146ad0c5277d94a418f8f87426957","_id":"logger-clearable@3.17.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Fle2hRoes4XuopD5w21DlRWLMOshcJ6lG3qBLj1Zv8UuJHQWI5lJ7+DqSyAHvVCy1gci0D5rKMn5m8spF6P0mQ==","shasum":"2d24963870aecd5945d5cb5b33cd6fba8d2b9806","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.17.0.tgz","fileCount":5,"unpackedSize":24007,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAytvCRA9TVsSAnZWagAACpsP/ih9u0rINx2GjL8h4IiZ\n4bP1aUOzG5gXSoBru6H7H85f8RR9hpQ+ew8APIcZ05ESr4RJEAWp9g1Akza3\nvYGOzchZCikNSaLl74/pl4/7zgqd/G3VUidFpD/tU0Ei28iZIyM0AkoXoOqg\nEMhrwoQRA+tsx0UmhvTVMatEF1X4fVjkPn7ZU/x8t3XVnRQG0alSBy7WCjwB\nrqe0LtThWTH0iP42/G/Eu29REQqGXrsf+mh4vA9E70ybyUSVSUqalTXzJkZ/\nB2aZV/3WJ5/zkPpnjL/A57qOZfVmx8DoAsmpn8hS+IYoYUgmWqH5Drpko7iE\n6PHnLYf2p5dM1Q+KQBexkgd6SKSDVk+m3g/DnNJ0XuZsPDx1jdvCq0rc5d6k\n0FwCfCU+yr2W+DIKvv0AdPDYXrNs4NDhhI/CVoM+jJdVOPFP54PjJKbqIiBL\n3oo8mh4LApTl6S0Xo9A+3N+/ZXYqYtSqHIjsIyEPCyIwnK9uhAa9Tl1hlwoW\nmp28THJvBAH6jVM6JSir0dxU7x9t9mmDkknFXA/Kg7xn3a+sOslqrYcQJUfF\nYxdZNnYbd0AMOsAs54Tr5sFAXch7pXPeHZxU0LnHcCXDI9J344vwJ9C03oxF\nQd52Sc7cYIyXVAnhAv4RWnFqwJOPqM3au+7p7K+wj0GobfY4HVXPPyoZrlvj\ni+gF\r\n=jGMv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUW1Y4kv8+21YRjqGZtQn3oPC9+UB9BSXgVjp101zuZAIhAIVAq/VbH0rdta6USc4+UUpkMUPwn4is4X81vGG0PMBt"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.17.0_1627597679292_0.34432162892428564"},"_hasShrinkwrap":false},"3.16.0":{"name":"logger-clearable","version":"3.16.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"MIT","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","daviddm","daviddmdev","---","githubsponsors","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 16 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 16"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.19.0","assert-helpers":"^8.2.0","eslint":"^7.31.0","eslint-config-bevry":"^3.25.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jsdoc":"^3.6.7","kava":"^5.14.0","prettier":"^2.3.2","projectz":"^2.19.0","surge":"^0.23.0","valid-directory":"^3.7.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"echo no need for this project","our:deploy":"echo no need for this project","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"gitHead":"55ef634e67041307df12ff52e3a1a82b1ff5f994","_id":"logger-clearable@3.16.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-dFpjxORo5LkRr20y5G5XEhxlS7kuH4oQ4CjWxi5Gv4oyNapfqZWs+z6mxXcCwMSjAIktRV2VylM6Kf/9mg93YQ==","shasum":"8791006afb9f5c69a45fe9a70b5400de02a66c60","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.16.0.tgz","fileCount":5,"unpackedSize":23823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhA39cCRA9TVsSAnZWagAAwmkP/1UKKz/udbIp9tGDiXkO\nmB3e33fHGW75GAJXGTo5B/OAm20fRE+Haa3TNKv7xy5HoBODSu/NuPAjqWoG\nSlF88cRlpFlI1yu9ihIgofnAjfRecIdLHhNdt7C+HY/lSyISItwOjF1RAD9R\noFDGvnndI9XJ4t0QsE2NXKKs3M9QK/wG4r6niguZpm2aHF2c845rpMEnVc3f\nACKgaVng/MP5syNKo2pr8HkVtNifHdplC4Qw8qfU+sKP29MxKEnyO+qQu7Lu\n+ABuhoJPpG0Ei50PN/nnMdR11hRMJrop18jEOp0z2W1MCHYsjPm2wohrxPp+\nZPX5NGqZLjGNIb5ohxWjp5k6eY8ifOOpEDyDtw3jO/zl9wBUQpgUybs6FjSD\nGxQeNn000JcbhD+R49ORgMq+vsLW+AUhLqLudiCpy0adRSX4mWDu7kqjDIOb\nm4VBYP6Az5uzAAj5oqA5O1Jpt9CjfqEGwkhrNJabNS9u0UrEWFD+c8ZiRlf4\nIn5yR85XTh6Q/oH/1vedsNE75/y+vsVPNqSugtq6NTPdz9M3e5VGIeaa0iOv\n16GK7IUfRWSM/q+Dn3zTuDn9pA1EQuvE59dNbeot2EGhU0aB15WXp5VbWAmt\nmLj4RfQqnS+iqd7hz9mqMbaHCRvfb5d0w4EwaAZ28VIT0RzTFdHghWWKiI0B\n1jAx\r\n=p8dq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRNSuDar+TPKilOnbD4LlrZWliIvk2Vx3mXTVzocg0NAiBhRhe3zSnIuYVRzGiBOnKr2PAqTTQ5CZiBTZpbeRr7sA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.16.0_1627619164107_0.07947243661841452"},"_hasShrinkwrap":false},"3.18.0-next.1698917653.ba2c90e0043b65c77d4cdc0fa67c629716926e72":{"name":"logger-clearable","version":"3.18.0-next.1698917653.ba2c90e0043b65c77d4cdc0fa67c629716926e72","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 16 || 18 || 20 || 21"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.22.0","assert-helpers":"^8.4.0","eslint":"^8.52.0","eslint-config-bevry":"^3.28.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^5.17.0","prettier":"^3.0.3","projectz":"^2.23.0","surge":"^0.23.1","valid-directory":"^4.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"printf '%s\n' 'no need for this project'","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"_id":"logger-clearable@3.18.0-next.1698917653.ba2c90e0043b65c77d4cdc0fa67c629716926e72","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/source/index.js</code></li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"ba2c90e0043b65c77d4cdc0fa67c629716926e72","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Hxqg/+Ean4wSMgtsSpenk9SakLZlAx1toLwbJM06PDthA0epSDUB4SZIcTEB6J3hbNMHFB3Jzq7TDdmgBYaeZw==","shasum":"a542f3c43d169ea0358f5be7c95d576b3124a26a","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.18.0-next.1698917653.ba2c90e0043b65c77d4cdc0fa67c629716926e72.tgz","fileCount":5,"unpackedSize":27402,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWsODgFDlewgBVEW1IZgYP7Y0xC/SuYtA3sqQTdNEY2QIhAPBrXVyPJ2vPc9d9SFUFxdDbLhUIrpr4GmYu4D82jazN"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.18.0-next.1698917653.ba2c90e0043b65c77d4cdc0fa67c629716926e72_1698917655082_0.7241402765022937"},"_hasShrinkwrap":false},"3.18.0":{"name":"logger-clearable","version":"3.18.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=10"},"editions":[{"description":"ESNext source code for Node.js 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"10 || 12 || 14 || 16 || 18 || 20 || 21"}}],"type":"commonjs","main":"source/index.js","devDependencies":{"@bevry/update-contributors":"^1.22.0","assert-helpers":"^8.4.0","eslint":"^8.52.0","eslint-config-bevry":"^3.28.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^5.17.0","prettier":"^3.0.3","projectz":"^2.23.0","surge":"^0.23.1","valid-directory":"^4.0.0"},"scripts":{"our:clean":"rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"printf '%s\n' 'no need for this project'","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./source/test.js"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true},"_id":"logger-clearable@3.18.0","gitHead":"ba2c90e0043b65c77d4cdc0fa67c629716926e72","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-ZnoQRdWPxq1LhNwNezkDNq7/noLA6Vw7P8nf5axjURJMTp/pB1N7L5ujHjVXUZi2sB5q7M6UqSbKLLjqZe/7yQ==","shasum":"50a9d9f9ffbffbeb6c3ea0e106e893c60bb2af72","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-3.18.0.tgz","fileCount":5,"unpackedSize":27344,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS5XiYsI9pDNDcgRyl6JqxHjTFTiYdN5VHHUzuRbjWzAIgH1xntIdBhUZf/vtAd6TwD+mAMTu98hAbtiHwizVMcK0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_3.18.0_1698917695529_0.40891868498518136"},"_hasShrinkwrap":false},"4.0.0-next.1699891709.7b34892a9b11ced4966cc9f0b0b49a27fa91f934":{"name":"logger-clearable","version":"4.0.0-next.1699891709.7b34892a9b11ced4966cc9f0b0b49a27fa91f934","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 21 with Require for modules","directory":"edition-node-21","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@babel/cli":"^7.23.0","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^3.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.1.0","prettier":"^3.1.0","projectz":"^2.23.0","surge":"^0.23.1","valid-directory":"^4.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-21 && npm run our:compile:edition-node-4","our:compile:edition-node-21":"env BABEL_ENV=edition-node-21 babel --out-dir ./edition-node-21 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-21/package.json","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-21":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"21"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]},"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.0.0-next.1699891709.7b34892a9b11ced4966cc9f0b0b49a27fa91f934","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-21/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"7b34892a9b11ced4966cc9f0b0b49a27fa91f934","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-DYRVcjGD7QMflYePgjrYS33JPzwx6p65HIcHAWEnUjDOhRyto6lk2BpglA0Z4H6eqGiWEI0YXjnBRiru26qQWw==","shasum":"f199cc4648e2724db42e7611c66ae21ccdfc2b07","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.0.0-next.1699891709.7b34892a9b11ced4966cc9f0b0b49a27fa91f934.tgz","fileCount":10,"unpackedSize":38388,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0kE7jUSNERhrMKLji3mAk8CfFk7/lsmhtFhNED3J2MAiEAvF/6/K9XDf1d3kWVIiQTaPDVPCHjbd1OZj4BoNHJk4Q="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.0.0-next.1699891709.7b34892a9b11ced4966cc9f0b0b49a27fa91f934_1699891710705_0.5335501042266813"},"_hasShrinkwrap":false},"4.0.0":{"name":"logger-clearable","version":"4.0.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 21 with Require for modules","directory":"edition-node-21","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@babel/cli":"^7.23.0","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^3.29.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.1.0","prettier":"^3.1.0","projectz":"^2.23.0","surge":"^0.23.1","valid-directory":"^4.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-21 && npm run our:compile:edition-node-4","our:compile:edition-node-21":"env BABEL_ENV=edition-node-21 babel --out-dir ./edition-node-21 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-21/package.json","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-21":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"21"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]},"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.0.0","gitHead":"7b34892a9b11ced4966cc9f0b0b49a27fa91f934","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-djaWKMSSeLYzLx+D261qfhW60d8LpphaPkFgLBS2/65ZjaSG1ld3TwdPZm7kvKbqHDmaH6unygH5JU/Sbpxoog==","shasum":"31d934a4c46e8d44a37e9e0677c12d700e1b0293","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.0.0.tgz","fileCount":10,"unpackedSize":38330,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTRR4PN8+VY5xndCg1QVeRJs90rQtPpvqnviWpeeVQ7QIgQvxQEYJyxqQKxlYz3PKzsCa0FLLDSmWjhQYrMOvB/gk="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.0.0_1699891714285_0.14527018134389902"},"_hasShrinkwrap":false},"4.1.0":{"name":"logger-clearable","version":"4.1.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@babel/cli":"^7.23.0","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.1.0","prettier":"^3.1.0","projectz":"^2.23.0","surge":"^0.23.1","valid-directory":"^4.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.1.0","gitHead":"23a61ac702c5dab8fed7a50c3c05296fdc84075d","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-sSqqQ5Au9h1NJvpy83f0+dIjtGXZ2Qx74xFibATUoSpOkg3iZgXtfoJV8UCuxAVgTQFLNKi+WfM4tBfTKiT02A==","shasum":"9069df685f60b5c93f9dedb28b240f68a25814b3","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.1.0.tgz","fileCount":9,"unpackedSize":36458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoCr55wDR4mixPQqoGf1je9gTsGndFNV54QD3gxCmGtAIhAJOhNa+VSdefNRRNo0fGaR2skb13FDhzBXjIdSryRKNj"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.1.0_1699948103737_0.7872236997965487"},"_hasShrinkwrap":false},"4.1.0-next.1699948112.23a61ac702c5dab8fed7a50c3c05296fdc84075d":{"name":"logger-clearable","version":"4.1.0-next.1699948112.23a61ac702c5dab8fed7a50c3c05296fdc84075d","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.11.0"},"devDependencies":{"@babel/cli":"^7.23.0","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.2.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.1.0","prettier":"^3.1.0","projectz":"^2.23.0","surge":"^0.23.1","valid-directory":"^4.1.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.1.0-next.1699948112.23a61ac702c5dab8fed7a50c3c05296fdc84075d","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"23a61ac702c5dab8fed7a50c3c05296fdc84075d","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-UfxP3H0ScGud1A/qvFxCwLFcZQmw5iBWmSna8sxSauI6xGoEXdYgD6O3MXX6nIIgI+xLMIExSctNBlR6mNNpZg==","shasum":"1a2e148f4917260727c47b44d1fb23739143a891","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.1.0-next.1699948112.23a61ac702c5dab8fed7a50c3c05296fdc84075d.tgz","fileCount":9,"unpackedSize":36516,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMOmr0YlFfu1W+FCVsI2wrtqJ2rWmvz+KmktUqAc5fNAiAQELOC5ILVj5IrsEixa5nnS7tJ31epj7v43fseDvQiLw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.1.0-next.1699948112.23a61ac702c5dab8fed7a50c3c05296fdc84075d_1699948114317_0.8584744016711672"},"_hasShrinkwrap":false},"4.2.0":{"name":"logger-clearable","version":"4.2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@babel/cli":"^7.23.0","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.4.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.2.0","prettier":"^3.1.0","projectz":"^3.0.0","surge":"^0.23.1","valid-directory":"^4.2.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.2.0","gitHead":"24bbd1123b321282d6af531f99267c053bbb0759","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Y40vFR1uypeIRY/oQqiO+ag/YmuTJDQ2bLEGGJWAIfbyCdoN4euqd0wSxH1cZ0/IKMDB6mjrspa3RI80lIbDBw==","shasum":"3042291a63c37617f7c67c66fdee3986832c6996","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.2.0.tgz","fileCount":9,"unpackedSize":36450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOv4kFiLMVQIY44vMXuSGm4UhkGM8DZr88naX2NcRTMAiAwRu+kT+1SYpy07bUQ2eavFvQzWOFaH696Q3YS0soTUw=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.2.0_1700027951178_0.08365526485490182"},"_hasShrinkwrap":false},"4.2.0-next.1700027953.24bbd1123b321282d6af531f99267c053bbb0759":{"name":"logger-clearable","version":"4.2.0-next.1700027953.24bbd1123b321282d6af531f99267c053bbb0759","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","flattr","liberapay","buymeacoffee","opencollective","crypto","paypal","wishlist"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"balupton","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@babel/cli":"^7.23.0","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.4.0","eslint":"^8.53.0","eslint-config-bevry":"^4.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.2.0","prettier":"^3.1.0","projectz":"^3.0.0","surge":"^0.23.1","valid-directory":"^4.2.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.2.0-next.1700027953.24bbd1123b321282d6af531f99267c053bbb0759","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/balupton\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-flattr\"><a href=\"https://flattr.com/profile/balupton\" title=\"Donate to this project using Flattr\"><img src=\"https://img.shields.io/badge/flattr-donate-yellow.svg\" alt=\"Flattr donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<span class=\"badge-wishlist\"><a href=\"https://bevry.me/wishlist\" title=\"Buy an item on our wishlist for us\"><img src=\"https://img.shields.io/badge/wishlist-donate-yellow.svg\" alt=\"Wishlist browse button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"24bbd1123b321282d6af531f99267c053bbb0759","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-WtOYaPbBrEyOCt/nEVXp74a+lGg6BT0LrCdYaFiDs/YdIndrzVhXHTyZ1qzb1lEfsJIfBjjqJP9RWTxJmpBXoA==","shasum":"60cdcc3fb68e9b9b52e241a8b48b470339847aec","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.2.0-next.1700027953.24bbd1123b321282d6af531f99267c053bbb0759.tgz","fileCount":9,"unpackedSize":36508,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDRsYEjTef/wZ82DkHLuQ7elSewd3Th1wy2rsgB2VZ+LAiBTMHgqbkoWw+dHTDNsQo/aHmUTYgn0eC+6Zw3gLJZSdQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.2.0-next.1700027953.24bbd1123b321282d6af531f99267c053bbb0759_1700027955389_0.24553182496754666"},"_hasShrinkwrap":false},"4.3.0-next.1700567952.ca655bc3150c6d9feb43ba25b6413738789f74bb":{"name":"logger-clearable","version":"4.3.0-next.1700567952.ca655bc3150c6d9feb43ba25b6413738789f74bb","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.3.0","prettier":"^3.1.0","projectz":"^3.2.0","surge":"^0.23.1","valid-directory":"^4.4.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.3.0-next.1700567952.ca655bc3150c6d9feb43ba25b6413738789f74bb","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"ca655bc3150c6d9feb43ba25b6413738789f74bb","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-Z7DXBV43pyYGHffz8LpvXQl+opATulOiZz85WIuboMxO5n8BEAV09zdFU6LB9tA/YgDhgzNP905hi27jlZSpkg==","shasum":"ce03f3873e21956d815d6b8a8ce754fbfdf2fa18","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.3.0-next.1700567952.ca655bc3150c6d9feb43ba25b6413738789f74bb.tgz","fileCount":9,"unpackedSize":36253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHn3TnkO9V/fGqe2HF7WZsiaG+b1W9X5PD1I+YemcuTpAiB4v8RxA4NhNy7LNBtD6/NpzrarJlGlPYTAEzHS9lIcbA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.3.0-next.1700567952.ca655bc3150c6d9feb43ba25b6413738789f74bb_1700567953880_0.572672327313867"},"_hasShrinkwrap":false},"4.3.0":{"name":"logger-clearable","version":"4.3.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.13.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.5.0","eslint":"^8.54.0","eslint-config-bevry":"^5.1.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.3.0","prettier":"^3.1.0","projectz":"^3.2.0","surge":"^0.23.1","valid-directory":"^4.4.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.3.0","gitHead":"ca655bc3150c6d9feb43ba25b6413738789f74bb","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-/7FRDq4J2/4gfAT4535Kkvf/wrRkGPL68bNKTZK8g63hIKj1Lwr5BTs9dM0CaWFsaXdfXpP8pZD9+9k2cQbnqg==","shasum":"946047c5f326fbc22aef752fd728b865ee279423","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.3.0.tgz","fileCount":9,"unpackedSize":36195,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDEZnzghfh2RHkJzZQsR3dUo1+EmuG4Dic66UXsLdDkQIhAIKgwLil0AM+KqD6CbVg6p/4DbSkfV/WE+qEtFRmzNup"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.3.0_1700567956387_0.4875144891991956"},"_hasShrinkwrap":false},"4.4.0-next.1700853075.f01351021a4c2df4a510b3650e2b129df545188d":{"name":"logger-clearable","version":"4.4.0-next.1700853075.f01351021a4c2df4a510b3650e2b129df545188d","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.16.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.6.0","eslint":"^8.54.0","eslint-config-bevry":"^5.2.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.4.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","valid-directory":"^4.5.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.4.0-next.1700853075.f01351021a4c2df4a510b3650e2b129df545188d","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"f01351021a4c2df4a510b3650e2b129df545188d","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-lwgIO20pgC1AcLiFQG6HqS/zvLTPAqBIZ/dHIUr5MVoTtEVXi/TC5ovnLjrqsRlcyugeHiYWixSYJOIHNPdgqw==","shasum":"7a4540875d4222bd9dbbe6dd1d687f8e43bfb3b1","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.4.0-next.1700853075.f01351021a4c2df4a510b3650e2b129df545188d.tgz","fileCount":9,"unpackedSize":36253,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChXoBzh7VT+2Meq4Z1XAlswRlUNbcDovEjILsoWX+FMwIhAJBA6g+JO4+2vZkTwwOIDOTBd6iy6AONFaG378t/6k5G"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.4.0-next.1700853075.f01351021a4c2df4a510b3650e2b129df545188d_1700853076512_0.440069669846731"},"_hasShrinkwrap":false},"4.4.0":{"name":"logger-clearable","version":"4.4.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.16.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.3","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.6.0","eslint":"^8.54.0","eslint-config-bevry":"^5.2.0","eslint-config-prettier":"^9.0.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.4.0","prettier":"^3.1.0","projectz":"^3.3.0","surge":"^0.23.1","valid-directory":"^4.5.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.4.0","gitHead":"f01351021a4c2df4a510b3650e2b129df545188d","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-oMF0ha6IWq1qb1pYJScKh5PjHTb2Dx2y+VYIia7ZYAJLmAh4/Oz7mCdvuF1VtQkhQhQ96/314w+MOvfC5JEFiQ==","shasum":"4f64ec8789f31021a39c50e25ebe5ed0f89ad5f8","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.4.0.tgz","fileCount":9,"unpackedSize":36195,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHJsiawhiBt3nyJ666clzVFDrH7vHwaNZW3Q2Syk91gwIhAIr1zHKfCJor3rL74UcKcK26bTy+Hk3Gliq3pSmUqSKF"}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.4.0_1700853079282_0.24713800833003785"},"_hasShrinkwrap":false},"4.5.0-next.1701820149.649a192675d8680215abca0a6f59acc5d00f3814":{"name":"logger-clearable","version":"4.5.0-next.1701820149.649a192675d8680215abca0a6f59acc5d00f3814","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.19.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.5","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.5","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.9.0","eslint":"^8.55.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.5.0","prettier":"^3.1.0","projectz":"^3.4.0","valid-directory":"^4.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.5.0-next.1701820149.649a192675d8680215abca0a6f59acc5d00f3814","readme":"<!-- TITLE/ -->\n\n<h1>logger-clearable</h1>\n\n<!-- /TITLE -->\n\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n<h2>Install</h2>\n\n<a href=\"https://npmjs.com\" title=\"npm is a package manager for javascript\"><h3>npm</h3></a>\n<ul>\n<li>Install: <code>npm install --save logger-clearable</code></li>\n<li>Import: <code>import * as pkg from ('logger-clearable')</code></li>\n<li>Require: <code>const pkg = require('logger-clearable')</code></li>\n</ul>\n\n<h3><a href=\"https://editions.bevry.me\" title=\"Editions are the best way to produce and consume packages you care about.\">Editions</a></h3>\n\n<p>This package is published with the following editions:</p>\n\n<ul><li><code>logger-clearable</code> aliases <code>logger-clearable/index.cjs</code> which uses the <a href=\"https://github.com/bevry/editions\" title=\"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li>\n<li><code>logger-clearable/source/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> source code for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li>\n<li><code>logger-clearable/edition-node-4/index.js</code> is <a href=\"https://en.wikipedia.org/wiki/ECMAScript#ES.Next\" title=\"ECMAScript Next\">ESNext</a> compiled for <a href=\"https://nodejs.org\" title=\"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\">Node.js</a> 4 with <a href=\"https://nodejs.org/dist/latest-v5.x/docs/api/modules.html\" title=\"Node/CJS Modules\">Require</a> for modules</li></ul>\n\n<h3><a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a></h3>\n\nThis project provides its type information via inline <a href=\"http://usejsdoc.org\" title=\"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\">JSDoc Comments</a>. To make use of this in <a href=\"https://www.typescriptlang.org/\" title=\"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. \">TypeScript</a>, set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomlish this via your `tsconfig.json` file like so:\n\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n\n<!-- HISTORY/ -->\n\n<h2>History</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/HISTORY.md#files\">Discover the release history by heading on over to the <code>HISTORY.md</code> file.</a>\n\n<!-- /HISTORY -->\n\n\n<!-- CONTRIBUTE/ -->\n\n<h2>Contribute</h2>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /CONTRIBUTE -->\n\n\n<!-- BACKERS/ -->\n\n<h2>Backers</h2>\n\n<h3>Maintainers</h3>\n\nThese amazing people are maintaining this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<h3>Sponsors</h3>\n\nNo sponsors yet! Will you be the first?\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n<h3>Contributors</h3>\n\nThese amazing people have contributed code to this project:\n\n<ul><li><a href=\"https://balupton.com\">Benjamin Lupton</a> — <a href=\"https://github.com/bevry/logger-clearable/commits?author=balupton\" title=\"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\">view contributions</a></li></ul>\n\n<a href=\"https://github.com/bevry/logger-clearable/blob/master/CONTRIBUTING.md#files\">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a>\n\n<!-- /BACKERS -->\n\n\n<!-- LICENSE/ -->\n\n<h2>License</h2>\n\nUnless stated otherwise all works are:\n\n<ul><li>Copyright &copy; 2018+ <a href=\"https://balupton.com\">Benjamin Lupton</a></li></ul>\n\nand licensed under:\n\n<ul><li><a href=\"http://spdx.org/licenses/Artistic-2.0.html\">Artistic License 2.0</a></li></ul>\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"649a192675d8680215abca0a6f59acc5d00f3814","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-zqtYhZN088Opj8EBiiArDyBO/7Mk4k+oGHvsnoKbHo5L+oJ6Ijg7xkrc0l8iKDPuSDltvjqkLBBfiCDodygW8g==","shasum":"654af1838cc1667538aca12bc536815962749ee2","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.5.0-next.1701820149.649a192675d8680215abca0a6f59acc5d00f3814.tgz","fileCount":9,"unpackedSize":36278,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMzFw7AvJQzhjF9JThF46FgomPTT8fZ0jF/qVZs5B87AiAoShChUDGY8TmcETIh9wad0Otv7BUcrIoD8QVPZhza6g=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.5.0-next.1701820149.649a192675d8680215abca0a6f59acc5d00f3814_1701820150818_0.4636112971588173"},"_hasShrinkwrap":false},"4.5.0":{"name":"logger-clearable","version":"4.5.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","license":"Artistic-2.0","keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"funding":"https://bevry.me/fund","author":{"name":"2018+ Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://github.com/balupton"}],"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.19.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.5","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.5","@bevry/update-contributors":"^1.23.0","assert-helpers":"^11.9.0","eslint":"^8.55.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.0.1","jsdoc":"^4.0.2","kava":"^7.5.0","prettier":"^3.1.0","projectz":"^3.4.0","valid-directory":"^4.6.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz","our:meta:contributors":"update-contributors","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz compile","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:directory && npm run our:verify:eslint && npm run our:verify:prettier","our:verify:directory":"valid-directory","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"_id":"logger-clearable@4.5.0","gitHead":"649a192675d8680215abca0a6f59acc5d00f3814","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-bKYgX/nr4Dq0G1HoN8sHmAgvpIxG6kNccthhl1KmRvsIFZoXcbJkkX1N+xlkOCqJwVlbkFi42t0+agF3ULxAEw==","shasum":"91800d11c78a5970daf266406912cc3601d6d557","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.5.0.tgz","fileCount":9,"unpackedSize":36220,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3U0dAAOmKhYh3hpEcblNKpXih1YepHv1tWzx93MPx2AiEA/8P6wsGdzNGhokBRCBVEJYH6JcBJT70ul8rfgHOzjt4="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.5.0_1701820158332_0.29483489450396005"},"_hasShrinkwrap":false},"4.6.0":{"name":"logger-clearable","version":"4.6.0","license":"Artistic-2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"],"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.20.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.6","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.6","assert-helpers":"^11.11.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","jsdoc":"^4.0.2","kava":"^7.6.0","prettier":"^3.1.1","projectz":"^4.0.0","valid-directory":"^4.7.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"logger-clearable@4.6.0","gitHead":"adbf98fc514843ffb41a6dbce600a37f2e9ef3b6","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-g3+4gvF4+GVSphOis7IXy+WayOn7rPCXtCENmj6KNxgL32glwPHm/Fzm1ch46c4KHj5DFpMLLcJPve9Z0as3Bg==","shasum":"c8cd1635e1e82a53ad9a296bf3afa667c60ddc70","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.6.0.tgz","fileCount":9,"unpackedSize":38376,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJxbLZnb3ACXkF4nHQjQxA6+sr/S8bskl2U3xYDE2tMQIgLpUa9t1Lt09lZnTJmOabazdwlRSj3a+2uIfe2/hcPQQ="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.6.0_1703696524931_0.6026755081368322"},"_hasShrinkwrap":false},"4.6.0-next.1703696530.adbf98fc514843ffb41a6dbce600a37f2e9ef3b6":{"name":"logger-clearable","version":"4.6.0-next.1703696530.adbf98fc514843ffb41a6dbce600a37f2e9ef3b6","license":"Artistic-2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io/) (https://github.com/codecov)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://bevry.me) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)"],"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.20.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.6","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.6","assert-helpers":"^11.11.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","jsdoc":"^4.0.2","kava":"^7.6.0","prettier":"^3.1.1","projectz":"^4.0.0","valid-directory":"^4.7.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/proposal-object-rest-spread"]}}},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"logger-clearable@4.6.0-next.1703696530.adbf98fc514843ffb41a6dbce600a37f2e9ef3b6","readme":"<!-- TITLE/ -->\n\n# logger-clearable\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n-   Install: `npm install --save logger-clearable`\n-   Import: `import * as pkg from ('logger-clearable')`\n-   Require: `const pkg = require('logger-clearable')`\n\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `logger-clearable` aliases `logger-clearable/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions \"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\") to automatically select the correct edition for the consumer's environment\n-   `logger-clearable/source/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next \"ECMAScript Next\") source code for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `logger-clearable/edition-node-4/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next \"ECMAScript Next\") compiled for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n\n### [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\")\n\nThis project provides its type information via inline [JSDoc Comments](http://usejsdoc.org \"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\"). To make use of this in [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\"), set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomplish this via your `tsconfig.json` file like so:\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/logger-clearable/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/logger-clearable/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://github.com/balupton) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/logger-clearable/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io/) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io/)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://bevry.me)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"adbf98fc514843ffb41a6dbce600a37f2e9ef3b6","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-GQtXCCc4rfHsrpx41K5RDJy5ACH//XlPHwdjsjNMfJVJXBvUbimM+GgrOEMNcUBkdUUrNNMncSYPZOv/tqjRhA==","shasum":"9834003dfab6c66052f476969d0280bb251f693d","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.6.0-next.1703696530.adbf98fc514843ffb41a6dbce600a37f2e9ef3b6.tgz","fileCount":9,"unpackedSize":38433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr1Y45v4HeYszHusdEICdBWBCyZ0i/Vf0hOWuuiVSvHAIgMtAw09It/leRN/3HBl1Pbg0YlxoxK6Bv2MCTZaAK4+k="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.6.0-next.1703696530.adbf98fc514843ffb41a6dbce600a37f2e9ef3b6_1703696531585_0.0074432261068859695"},"_hasShrinkwrap":false},"4.7.0":{"name":"logger-clearable","version":"4.7.0","license":"Artistic-2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.21.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.6","@babel/plugin-transform-object-rest-spread":"^7.23.4","@babel/preset-env":"^7.23.6","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","jsdoc":"^4.0.2","kava":"^7.8.0","prettier":"^3.1.1","projectz":"^4.1.1","valid-directory":"^4.8.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/plugin-transform-object-rest-spread"]}}},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"logger-clearable@4.7.0","gitHead":"c28814b5f05a1ba4d384024ed19e98ef207f5266","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-vcayL1w0lHqIXXKeUy91YaVfaMs7uUO/1cy8P5m7tW03p941mMo6OOyt7eEX6B4Jmibq4rI/aEa8ZtNoHD471A==","shasum":"bc24e6b86c5075a5beea7c04c4c1e5afad7ca465","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.7.0.tgz","fileCount":9,"unpackedSize":39758,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCafbls/XItOFAys0TNBS0/C1Qcnt++6XT08nHSzB8jTAIgWDiz8Ohnce8aqwIphT6m1EvE4rqpZYOeN6xJAjIgdS0="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.7.0_1703870889871_0.22605164614270135"},"_hasShrinkwrap":false},"4.7.0-next.1703870845.c28814b5f05a1ba4d384024ed19e98ef207f5266":{"name":"logger-clearable","version":"4.7.0-next.1703870845.c28814b5f05a1ba4d384024ed19e98ef207f5266","license":"Artistic-2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.21.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.6","@babel/plugin-transform-object-rest-spread":"^7.23.4","@babel/preset-env":"^7.23.6","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.3.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","jsdoc":"^4.0.2","kava":"^7.8.0","prettier":"^3.1.1","projectz":"^4.1.1","valid-directory":"^4.8.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/plugin-transform-object-rest-spread"]}}},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"logger-clearable@4.7.0-next.1703870845.c28814b5f05a1ba4d384024ed19e98ef207f5266","readme":"<!-- TITLE/ -->\n\n# logger-clearable\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n-   Install: `npm install --save logger-clearable`\n-   Import: `import * as pkg from ('logger-clearable')`\n-   Require: `const pkg = require('logger-clearable')`\n\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `logger-clearable` aliases `logger-clearable/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions \"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\") to automatically select the correct edition for the consumer's environment\n-   `logger-clearable/source/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next \"ECMAScript Next\") source code for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `logger-clearable/edition-node-4/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next \"ECMAScript Next\") compiled for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n\n### [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\")\n\nThis project provides its type information via inline [JSDoc Comments](http://usejsdoc.org \"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\"). To make use of this in [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\"), set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomplish this via your `tsconfig.json` file like so:\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/logger-clearable/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/logger-clearable/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/logger-clearable/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Armen Mkrtchian](https://mogoni.dev)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io)\n-   [dr.dimitru](https://veliovgroup.com)\n-   [Elliott Ditman](https://elliottditman.com)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [GitHub](https://github.com/about)\n-   [Hunter Beast](https://cryptoquick.com)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://mdm.cc)\n-   [Michael Harry Scepaniak](https://michaelscepaniak.com)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Mr. Henry](https://mrhenry.be)\n-   [Nermal](https://arjunaditya.vercel.app)\n-   [Pleo](https://pleo.io)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Robert de Forest](https://github.com/rdeforest)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n-   [WriterJohnBuck](https://github.com/WriterJohnBuck)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"c28814b5f05a1ba4d384024ed19e98ef207f5266","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-x7tkBs12vDpcK7HpNrNeG5IltqDeUPPHjGDmHOZRTm60b5gqy8EQShadEcKdqosJMEi2dvsCDhgbDAya+SS/WQ==","shasum":"64244bf3d2950dfd1cecbc64bab3c7b8fbadd788","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.7.0-next.1703870845.c28814b5f05a1ba4d384024ed19e98ef207f5266.tgz","fileCount":9,"unpackedSize":39815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKM2bBWw0WlxrtsamwQ89EtznpKj6qCKd93U51hz+RVAiA2hZom3M/qPAss+tU1BmZSy8Mk++jA4rPmWJxaXFMQuQ=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.7.0-next.1703870845.c28814b5f05a1ba4d384024ed19e98ef207f5266_1703870893113_0.439267193363583"},"_hasShrinkwrap":false},"4.8.0":{"name":"logger-clearable","version":"4.8.0","license":"Artistic-2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.21.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/plugin-transform-object-rest-spread":"^7.23.4","@babel/preset-env":"^7.23.7","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.5.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","jsdoc":"^4.0.2","kava":"^7.9.0","prettier":"^3.1.1","projectz":"^4.2.0","valid-directory":"^4.9.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/plugin-transform-object-rest-spread"]}}},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"logger-clearable@4.8.0","gitHead":"bbc50f278982f290e6ce6c119daf142f59359bfe","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-q1Piw0ak/VoZpe7/miJlKNxFI/lts3kiXGrpR3WLzuyu1wcMKMo1pQ4+Lka87wEfbJHvOXHFhFCor+6kIV4wyQ==","shasum":"f33ee52ff36b05736ec1bc0272527543cac7a9fd","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.8.0.tgz","fileCount":9,"unpackedSize":39771,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRoXvq50xHw3e13oNs6s/qjemzfyZvSVBjTnUEGteFjAiALDHsOUoqCYHyO4JofmHfy1v5wXyIha8fHoPQ6BaF2NA=="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.8.0_1704170776292_0.48358673949104714"},"_hasShrinkwrap":false},"4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe":{"name":"logger-clearable","version":"4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe","license":"Artistic-2.0","description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","funding":"https://bevry.me/fund","repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"keywords":["clear","es5","esnext","log","logger","node","typed","types"],"badges":{"list":["githubworkflow","npmversion","npmdownloads","---","githubsponsors","thanksdev","patreon","liberapay","buymeacoffee","opencollective","crypto","paypal","---","discord","twitch"],"config":{"githubWorkflow":"bevry","githubSponsorsUsername":"balupton","thanksdevGithubUsername":"bevry","buymeacoffeeUsername":"balupton","cryptoURL":"https://bevry.me/crypto","flattrUsername":"balupton","liberapayUsername":"bevry","opencollectiveUsername":"bevry","patreonUsername":"bevry","paypalURL":"https://bevry.me/paypal","wishlistURL":"https://bevry.me/wishlist","discordServerID":"1147436445783560193","discordServerInvite":"nQuXddV7VP","twitchUsername":"balupton","githubUsername":"bevry","githubRepository":"logger-clearable","githubSlug":"bevry/logger-clearable","npmPackageName":"logger-clearable"}},"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"authors":["Benjamin Lupton <b@lupton.cc> (https://balupton.com) (https://github.com/balupton): Accelerating collaborative wisdom."],"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"sponsors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew): Software engineer and researcher","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa): We're Balsa, and we're building tools for builders.","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov): Empower developers with tools to improve code quality and testing.","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Sentry (https://sentry.io) (https://github.com/getsentry): Real-time crash reporting for your web apps, mobile apps, and games.","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm): Syntax Podcast"],"donors":["Andrew Nesbitt (https://nesbitt.io) (https://github.com/andrew)","Armen Mkrtchian (https://mogoni.dev) (https://github.com/Armenm)","Balsa <hello@balsa.com> (https://balsa.com) (https://github.com/balsa)","Chad (https://opencollective.com/chad8)","Codecov <hello-codecov@sentry.io> (https://codecov.io) (https://github.com/codecov)","dr.dimitru (https://veliovgroup.com) (https://github.com/dr-dimitru)","Elliott Ditman (https://elliottditman.com) (https://github.com/elliottditman)","entroniq (https://gitlab.com/entroniq) (https://thanks.dev/d/gl/entroniq)","GitHub (https://github.com/about) (https://github.com/github)","Hunter Beast (https://cryptoquick.com) (https://github.com/cryptoquick)","Jean-Luc Geering (https://github.com/jlgeering) (https://opencollective.com/jlgeering) (https://twitter.com/jlgeering)","Michael Duane Mooring (https://mdm.cc) (https://github.com/mikeumus) (https://opencollective.com/mikeumus) (https://twitter.com/mikeumus)","Michael Harry Scepaniak <mhs1.sys@gmail.com> (https://michaelscepaniak.com) (https://github.com/hispanic)","Mohammed Shah <shah@idk.uno> (https://github.com/smashah) (https://thanks.dev/d/gh/smashah) (https://twitter.com/smashah)","Mr. Henry <hello@mrhenry.be> (https://mrhenry.be) (https://github.com/mrhenry)","Nermal <nermalcat69@skiff.com> (https://arjunaditya.vercel.app) (https://github.com/nermalcat69)","Pleo (https://pleo.io) (https://github.com/pleo-io)","Poonacha Medappa (https://poonachamedappa.com) (https://github.com/km-Poonacha)","Rob Morris <rob@prismatik.com.au> (https://github.com/Rob-Morris)","Robert de Forest <guitar.robot@gmail.com> (https://github.com/rdeforest)","Sentry (https://sentry.io) (https://github.com/getsentry)","ServieJS (https://github.com/serviejs) (https://thanks.dev/d/gh/serviejs)","Skunk Team (https://skunk.team) (https://github.com/skunkteam)","Syntax <scott@syntax.fm> (https://syntax.fm) (https://github.com/syntaxfm)","WriterJohnBuck (https://github.com/WriterJohnBuck)"],"engines":{"node":">=4"},"editions":[{"description":"ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"source","entry":"index.js","tags":["source","javascript","esnext","require"],"engines":{"node":"6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21"}},{"description":"ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules","directory":"edition-node-4","entry":"index.js","tags":["compiled","javascript","es5","require"],"engines":{"node":"4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21","browsers":false}}],"type":"commonjs","main":"index.cjs","dependencies":{"editions":"^6.21.0"},"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/plugin-transform-object-rest-spread":"^7.23.4","@babel/preset-env":"^7.23.7","assert-helpers":"^11.12.0","eslint":"^8.56.0","eslint-config-bevry":"^5.5.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","jsdoc":"^4.0.2","kava":"^7.9.0","prettier":"^3.1.1","projectz":"^4.2.0","valid-directory":"^4.9.0"},"scripts":{"our:clean":"rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next","our:compile":"npm run our:compile:edition-node-4","our:compile:edition-node-4":"env BABEL_ENV=edition-node-4 babel --out-dir ./edition-node-4 ./source && printf '%s' '{\"type\": \"commonjs\"}' > edition-node-4/package.json","our:deploy":"printf '%s\n' 'no need for this project'","our:meta":"npm run our:meta:docs && npm run our:meta:projectz","our:meta:docs":"npm run our:meta:docs:jsdoc","our:meta:docs:jsdoc":"rm -rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -rf ./docs/$npm_package_name/$npm_package_version","our:meta:projectz":"projectz --offline","our:release":"npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push","our:release:check-changelog":"cat ./HISTORY.md | grep \"v$npm_package_version\" || (printf '%s\n' \"add a changelog entry for v$npm_package_version\" && exit -1)","our:release:check-dirty":"git diff --exit-code","our:release:prepare":"npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta","our:release:push":"git push origin && git push origin --tags","our:release:tag":"export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (printf '%s\n' 'proper changelog entry not found' && exit -1) && git tag \"v$npm_package_version\" -am \"$MESSAGE\"","our:setup":"npm run our:setup:install","our:setup:install":"npm install","our:test":"npm run our:verify && npm test","our:verify":"npm run our:verify:eslint && npm run our:verify:prettier","our:verify:eslint":"eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source","our:verify:prettier":"prettier --write .","test":"node ./test.cjs"},"babel":{"env":{"edition-node-4":{"sourceType":"script","presets":[["@babel/preset-env",{"targets":{"node":"4"},"modules":"commonjs"}]],"plugins":["@babel/plugin-transform-object-rest-spread"]}}},"eslintConfig":{"extends":["bevry"]},"prettier":{"semi":false,"singleQuote":true,"trailingComma":"es5","endOfLine":"lf"},"_id":"logger-clearable@4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe","readme":"<!-- TITLE/ -->\n\n# logger-clearable\n\n<!-- /TITLE -->\n\n<!-- BADGES/ -->\n\n<span class=\"badge-githubworkflow\"><a href=\"https://github.com/bevry/logger-clearable/actions?query=workflow%3Abevry\" title=\"View the status of this project's GitHub Workflow: bevry\"><img src=\"https://github.com/bevry/logger-clearable/workflows/bevry/badge.svg\" alt=\"Status of the GitHub Workflow: bevry\" /></a></span>\n<span class=\"badge-npmversion\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/v/logger-clearable.svg\" alt=\"NPM version\" /></a></span>\n<span class=\"badge-npmdownloads\"><a href=\"https://npmjs.org/package/logger-clearable\" title=\"View this project on NPM\"><img src=\"https://img.shields.io/npm/dm/logger-clearable.svg\" alt=\"NPM downloads\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n<br class=\"badge-separator\" />\n<span class=\"badge-discord\"><a href=\"https://discord.gg/nQuXddV7VP\" title=\"Join this project's community on Discord\"><img src=\"https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord\" alt=\"Discord server badge\" /></a></span>\n<span class=\"badge-twitch\"><a href=\"https://www.twitch.tv/balupton\" title=\"Join this project's community on Twitch\"><img src=\"https://img.shields.io/twitch/status/balupton?logo=twitch\" alt=\"Twitch community badge\" /></a></span>\n\n<!-- /BADGES -->\n\n<!-- DESCRIPTION/ -->\n\nA logger that is clearable\n\n<!-- /DESCRIPTION -->\n\n\n## Usage\n\n[Complete API Documentation.](http://master.logger-clearable.bevry.surge.sh/docs/)\n\n```javascript\n'use strict'\n\n// create our clearable logger\nconst logger = require('logger-clearable').create()\nconst method = 'log'\n\n// log the date every second\nconst timer = setInterval(function () {\n    if (method === 'log') {\n        const date = new Date()\n        const time = date.toISOString()\n        logger.log(time)\n    } else {\n        // the above will actually call: logger.queue(() => time)\n        // instead, we can use queue directly:\n        // using queue direclty is more performant as\n        // any setup for our particular message will happen only if that message will be written\n        // this is applicable as logger won't bother writing messages that would be cleared instantly\n        // e.g. logger.log('hello').log('world') would otherwise write 'hello' then have to clear it right away\n        // instead, logger just skips writing 'hello' and will just write 'world'\n        logger.queue(function () {\n            const date = new Date()\n            const time = date.toISOString()\n            return time\n        })\n    }\n}, 100)\n\n// on ctrl+c close the timer and discard any upcoming logs\nprocess.on('SIGINT', () => {\n    // stop any more calls to logger\n    clearInterval(timer)\n    // discard any logger queued updated\n    logger.discard()\n    // and clear the log\n    logger.clear()\n})\n```\n\n<!-- INSTALL/ -->\n\n## Install\n\n### [npm](https://npmjs.com \"npm is a package manager for javascript\")\n\n-   Install: `npm install --save logger-clearable`\n-   Import: `import * as pkg from ('logger-clearable')`\n-   Require: `const pkg = require('logger-clearable')`\n\n### [Editions](https://editions.bevry.me \"Editions are the best way to produce and consume packages you care about.\")\n\nThis package is published with the following editions:\n-   `logger-clearable` aliases `logger-clearable/index.cjs` which uses the [Editions Autoloader](https://github.com/bevry/editions \"You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment\") to automatically select the correct edition for the consumer's environment\n-   `logger-clearable/source/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next \"ECMAScript Next\") source code for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n-   `logger-clearable/edition-node-4/index.js` is [ESNext](https://en.wikipedia.org/wiki/ECMAScript#ES.Next \"ECMAScript Next\") compiled for [Node.js](https://nodejs.org \"Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine\") 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with [Require](https://nodejs.org/dist/latest-v5.x/docs/api/modules.html \"Node/CJS Modules\") for modules\n\n### [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\")\n\nThis project provides its type information via inline [JSDoc Comments](http://usejsdoc.org \"JSDoc is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor\"). To make use of this in [TypeScript](https://www.typescriptlang.org/ \"TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.\"), set your <code>maxNodeModuleJsDepth</code> compiler option to `5` or thereabouts. You can accomplish this via your `tsconfig.json` file like so:\n``` json\n{\n  \"compilerOptions\": {\n    \"maxNodeModuleJsDepth\": 5\n  }\n}\n```\n\n<!-- /INSTALL -->\n\n<!-- HISTORY/ -->\n\n## History\n\n[Discover the release history by heading on over to the `HISTORY.md` file.](https://github.com/bevry/logger-clearable/blob/HEAD/HISTORY.md#files)\n\n<!-- /HISTORY -->\n\n<!-- BACKERS/ -->\n\n## Backers\n\n### Code\n\n[Discover how to contribute via the `CONTRIBUTING.md` file.](https://github.com/bevry/logger-clearable/blob/HEAD/CONTRIBUTING.md#files)\n\n#### Authors\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Maintainers\n\n-   [Benjamin Lupton](https://balupton.com) — Accelerating collaborative wisdom.\n\n#### Contributors\n\n-   [Benjamin Lupton](https://github.com/balupton) — [view contributions](https://github.com/bevry/logger-clearable/commits?author=balupton \"View the GitHub contributions of Benjamin Lupton on repository bevry/logger-clearable\")\n\n### Finances\n\n<span class=\"badge-githubsponsors\"><a href=\"https://github.com/sponsors/balupton\" title=\"Donate to this project using GitHub Sponsors\"><img src=\"https://img.shields.io/badge/github-donate-yellow.svg\" alt=\"GitHub Sponsors donate button\" /></a></span>\n<span class=\"badge-thanksdev\"><a href=\"https://thanks.dev/u/gh/bevry\" title=\"Donate to this project using ThanksDev\"><img src=\"https://img.shields.io/badge/thanksdev-donate-yellow.svg\" alt=\"ThanksDev donate button\" /></a></span>\n<span class=\"badge-patreon\"><a href=\"https://patreon.com/bevry\" title=\"Donate to this project using Patreon\"><img src=\"https://img.shields.io/badge/patreon-donate-yellow.svg\" alt=\"Patreon donate button\" /></a></span>\n<span class=\"badge-liberapay\"><a href=\"https://liberapay.com/bevry\" title=\"Donate to this project using Liberapay\"><img src=\"https://img.shields.io/badge/liberapay-donate-yellow.svg\" alt=\"Liberapay donate button\" /></a></span>\n<span class=\"badge-buymeacoffee\"><a href=\"https://buymeacoffee.com/balupton\" title=\"Donate to this project using Buy Me A Coffee\"><img src=\"https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg\" alt=\"Buy Me A Coffee donate button\" /></a></span>\n<span class=\"badge-opencollective\"><a href=\"https://opencollective.com/bevry\" title=\"Donate to this project using Open Collective\"><img src=\"https://img.shields.io/badge/open%20collective-donate-yellow.svg\" alt=\"Open Collective donate button\" /></a></span>\n<span class=\"badge-crypto\"><a href=\"https://bevry.me/crypto\" title=\"Donate to this project using Cryptocurrency\"><img src=\"https://img.shields.io/badge/crypto-donate-yellow.svg\" alt=\"crypto donate button\" /></a></span>\n<span class=\"badge-paypal\"><a href=\"https://bevry.me/paypal\" title=\"Donate to this project using Paypal\"><img src=\"https://img.shields.io/badge/paypal-donate-yellow.svg\" alt=\"PayPal donate button\" /></a></span>\n\n#### Sponsors\n\n-   [Andrew Nesbitt](https://nesbitt.io) — Software engineer and researcher\n-   [Balsa](https://balsa.com) — We're Balsa, and we're building tools for builders.\n-   [Codecov](https://codecov.io) — Empower developers with tools to improve code quality and testing.\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Sentry](https://sentry.io) — Real-time crash reporting for your web apps, mobile apps, and games.\n-   [Syntax](https://syntax.fm) — Syntax Podcast\n\n#### Donors\n\n-   [Andrew Nesbitt](https://nesbitt.io)\n-   [Armen Mkrtchian](https://mogoni.dev)\n-   [Balsa](https://balsa.com)\n-   [Chad](https://opencollective.com/chad8)\n-   [Codecov](https://codecov.io)\n-   [dr.dimitru](https://veliovgroup.com)\n-   [Elliott Ditman](https://elliottditman.com)\n-   [entroniq](https://gitlab.com/entroniq)\n-   [GitHub](https://github.com/about)\n-   [Hunter Beast](https://cryptoquick.com)\n-   [Jean-Luc Geering](https://github.com/jlgeering)\n-   [Michael Duane Mooring](https://mdm.cc)\n-   [Michael Harry Scepaniak](https://michaelscepaniak.com)\n-   [Mohammed Shah](https://github.com/smashah)\n-   [Mr. Henry](https://mrhenry.be)\n-   [Nermal](https://arjunaditya.vercel.app)\n-   [Pleo](https://pleo.io)\n-   [Poonacha Medappa](https://poonachamedappa.com)\n-   [Rob Morris](https://github.com/Rob-Morris)\n-   [Robert de Forest](https://github.com/rdeforest)\n-   [Sentry](https://sentry.io)\n-   [ServieJS](https://github.com/serviejs)\n-   [Skunk Team](https://skunk.team)\n-   [Syntax](https://syntax.fm)\n-   [WriterJohnBuck](https://github.com/WriterJohnBuck)\n\n<!-- /BACKERS -->\n\n<!-- LICENSE/ -->\n\n## License\n\nUnless stated otherwise all works are:\n\n-   Copyright &copy; [Benjamin Lupton](https://balupton.com)\n\nand licensed under:\n\n-   [Artistic License 2.0](http://spdx.org/licenses/Artistic-2.0.html)\n\n<!-- /LICENSE -->\n","readmeFilename":"README.md","gitHead":"bbc50f278982f290e6ce6c119daf142f59359bfe","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ZLtrvXKkB2yVQHj3vkEur6e9zL78yXejyXhuoP5KUK2vv2jwcvbJaG22UFyFSAXMtfsPI5Yyo+MqWh1tAKfQYw==","shasum":"6bc7c0dc3429084012d0e4a5cebc196c82580113","tarball":"https://registry.npmjs.org/logger-clearable/-/logger-clearable-4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe.tgz","fileCount":9,"unpackedSize":39828,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrB49fuoGNpQ/5YkoppGlhIgBG0abDvymSfRl7l8jKNQIgQFC/pQCZi6zr0jjZuE3Qq4sOT1g0FM83cBPS4PZ8/CY="}]},"_npmUser":{"name":"bevryme","email":"us@bevry.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger-clearable_4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe_1704170786788_0.3263736691504837"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-26T23:06:31.588Z","1.0.0":"2018-07-26T23:06:31.915Z","modified":"2024-01-02T04:46:27.164Z","1.0.1":"2019-01-01T05:40:27.645Z","1.1.0-next.1573628243.2266d4cf033c3be3031e5585341232d79127de8d":"2019-11-13T06:57:26.141Z","1.1.0":"2019-11-13T06:58:48.713Z","2.0.0-next.1574054360.c020911294bae9df80f60d5540f725dcf22a212c":"2019-11-18T05:19:22.262Z","2.0.0":"2019-11-18T05:20:24.405Z","2.1.0-next.1575152252.2e9457164e8dfa42e73f239e10913fe19669129e":"2019-11-30T22:17:34.089Z","2.1.0":"2019-11-30T22:18:48.523Z","2.2.0-next.1575216947.ec8b0b19be1d50323346c2fdfd1f56fd8be36213":"2019-12-01T16:15:48.641Z","2.2.0":"2019-12-01T16:16:56.701Z","2.3.0":"2019-12-09T18:07:41.249Z","2.3.0-next.1575914912.d153a205ca18f5b3b55e886bbebe476e794435af":"2019-12-09T18:08:33.213Z","3.0.0-next.1589158246.0b3535d2502d65be1ccad0745fe5aba44514efef":"2020-05-11T00:50:47.761Z","3.0.0":"2020-05-11T00:51:54.505Z","3.1.0-next.1590002809.d91ea5c849a6515aa0bd7ced5105de6c338fff9b":"2020-05-20T19:26:50.460Z","3.1.0":"2020-05-20T19:28:03.878Z","3.2.0-next.1590051484.ac1c64275043d27b9a43bf9e0a1f52ce4865b7dc":"2020-05-21T08:58:09.670Z","3.2.0":"2020-05-21T08:59:15.046Z","3.3.0":"2020-05-21T16:19:31.254Z","3.3.0-next.1590078049.845bfc8a217bedaba663fd664f635378df166066":"2020-05-21T16:20:51.368Z","3.4.0-next.1591781495.dd25867a8a4b276cba6d51a9b8d69622d4f7c1fc":"2020-06-10T09:31:36.376Z","3.4.0":"2020-06-10T09:32:43.859Z","3.5.0-next.1591798625.08cf0af1087532364455c95bd0b33c099930255f":"2020-06-10T14:17:06.544Z","3.5.0":"2020-06-10T14:18:25.656Z","3.6.0-next.1592628646.bf3b566588cd6b967502b560f9ba8e20bee138ad":"2020-06-20T04:50:47.838Z","3.6.0":"2020-06-20T04:53:39.884Z","3.7.0-next.1592716697.ffd17b4018c2f3132ec8b3587f60522f93728b69":"2020-06-21T05:18:18.716Z","3.7.0":"2020-06-21T05:19:19.839Z","3.8.0-next.1592761163.334c7d0b613e9f98c70911d66d736f08074846ba":"2020-06-21T17:39:24.728Z","3.8.0":"2020-06-21T17:40:29.224Z","3.9.0-next.1593056999.337c7d233f384d0fb8b118456b620e6a00733a94":"2020-06-25T03:50:00.679Z","3.9.0":"2020-06-25T03:51:01.893Z","3.9.0-next.1593741881.5c1c1a8f072487abad3867bcbce883890bcf5cc4":"2020-07-03T02:04:42.813Z","3.10.0-next.1595356742.eb8875ece49744220a8f3864173b1e5914b7f529":"2020-07-21T18:39:03.538Z","3.10.0":"2020-07-21T18:40:11.626Z","3.11.0-next.1596518375.22acd23d20027baa1ebbee6e2f564223df631b59":"2020-08-04T05:19:37.096Z","3.11.0":"2020-08-04T05:20:43.864Z","3.12.0-next.1597697879.cc9044fce31643ceb0272d38975fd544a86d3b97":"2020-08-17T20:58:00.645Z","3.12.0":"2020-08-17T20:59:00.627Z","3.12.0-next.1597697949.90414d38f0938da964797dae5575558aa7e73f00":"2020-08-17T20:59:11.106Z","3.12.0-next.1598187209.4171b1197cf58e9c5956a374945845b8ab80d2bd":"2020-08-23T12:53:30.868Z","3.12.0-next.1598780071.95ce67b352b38539e9cb44d3fecdd576489d9ebd":"2020-08-30T09:34:32.593Z","3.13.0-next.1599271053.86c1ef18d539224dc3dc2809dcfbf9f9c176e759":"2020-09-05T01:57:35.470Z","3.13.0":"2020-09-05T01:58:43.296Z","3.13.0-next.1599394640.64526d18cbc96c8a294d375c07c603a524b02725":"2020-09-06T12:17:22.107Z","3.13.0-next.1599989875.5f8a24ad7b508c990c975ab3c23e43dd5773be71":"2020-09-13T09:37:56.636Z","3.13.0-next.1600601385.62bc9688230c088464598443357b7643889298d3":"2020-09-20T11:29:46.539Z","3.13.0-next.1601210742.748e54842035d722290c6a52d6849a0504ba7bdc":"2020-09-27T12:45:44.181Z","3.13.0-next.1601215567.2375cd8e312814fde2e67b06cdd51b9b34997d6c":"2020-09-27T14:06:08.886Z","3.13.0-next.1602409805.0cd61d47c4ebd1b8c69c2b603b48fd7c5729ff0d":"2020-10-11T09:50:06.684Z","3.13.0-next.1603016770.390bea4d211d18eb8292970acdfc54928ec9559e":"2020-10-18T10:26:12.417Z","3.13.0-next.1603627055.eed2da83f5ad54d36088d1fcfb8f983c498b6e92":"2020-10-25T11:57:37.371Z","3.14.0-next.1603939351.014629fcd2c126a66df899fd31d637f2a81079cb":"2020-10-29T02:42:32.415Z","3.14.0":"2020-10-29T02:42:40.054Z","3.14.0-next.1604237257.961c45c24bfa168165eb93f6d0ba2cea0646f8eb":"2020-11-01T13:27:38.958Z","3.15.0-next.1627427121.ea97fdcc55470f5596569ec2b91e9e90fd52e958":"2021-07-27T23:05:23.204Z","3.15.0":"2021-07-27T23:07:04.800Z","3.16.0-next.1627510004.55ef634e67041307df12ff52e3a1a82b1ff5f994":"2021-07-28T22:06:46.313Z","3.17.0-next.1627597515.dd95c8d3454146ad0c5277d94a418f8f87426957":"2021-07-29T22:25:17.362Z","3.17.0":"2021-07-29T22:27:59.414Z","3.16.0":"2021-07-30T04:26:04.230Z","3.18.0-next.1698917653.ba2c90e0043b65c77d4cdc0fa67c629716926e72":"2023-11-02T09:34:15.370Z","3.18.0":"2023-11-02T09:34:55.708Z","4.0.0-next.1699891709.7b34892a9b11ced4966cc9f0b0b49a27fa91f934":"2023-11-13T16:08:30.884Z","4.0.0":"2023-11-13T16:08:34.493Z","4.1.0":"2023-11-14T07:48:23.942Z","4.1.0-next.1699948112.23a61ac702c5dab8fed7a50c3c05296fdc84075d":"2023-11-14T07:48:34.510Z","4.2.0":"2023-11-15T05:59:11.398Z","4.2.0-next.1700027953.24bbd1123b321282d6af531f99267c053bbb0759":"2023-11-15T05:59:15.580Z","4.3.0-next.1700567952.ca655bc3150c6d9feb43ba25b6413738789f74bb":"2023-11-21T11:59:14.106Z","4.3.0":"2023-11-21T11:59:16.578Z","4.4.0-next.1700853075.f01351021a4c2df4a510b3650e2b129df545188d":"2023-11-24T19:11:16.675Z","4.4.0":"2023-11-24T19:11:19.438Z","4.5.0-next.1701820149.649a192675d8680215abca0a6f59acc5d00f3814":"2023-12-05T23:49:11.053Z","4.5.0":"2023-12-05T23:49:18.531Z","4.6.0":"2023-12-27T17:02:05.169Z","4.6.0-next.1703696530.adbf98fc514843ffb41a6dbce600a37f2e9ef3b6":"2023-12-27T17:02:11.741Z","4.7.0":"2023-12-29T17:28:10.108Z","4.7.0-next.1703870845.c28814b5f05a1ba4d384024ed19e98ef207f5266":"2023-12-29T17:28:13.278Z","4.8.0":"2024-01-02T04:46:16.463Z","4.8.0-next.1704170729.bbc50f278982f290e6ce6c119daf142f59359bfe":"2024-01-02T04:46:26.980Z"},"maintainers":[{"name":"bevryme","email":"us@bevry.me"}],"description":"A logger that is clearable","homepage":"https://github.com/bevry/logger-clearable","keywords":["clear","es5","esnext","log","logger","node","typed","types"],"repository":{"type":"git","url":"git+https://github.com/bevry/logger-clearable.git"},"contributors":[{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"}],"author":{"name":"Benjamin Lupton","email":"b@lupton.cc","url":"https://balupton.com"},"bugs":{"url":"https://github.com/bevry/logger-clearable/issues"},"license":"Artistic-2.0","readme":"","readmeFilename":""}