{"_id":"@bunlyfans/log","_rev":"3-60cfa9ea09f48a22434d10dce8e04f90","name":"@bunlyfans/log","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@bunlyfans/log","description":"Simple logger, powered by Bun","type":"module","version":"0.1.0","keywords":["bun","bunlyfans"],"bugs":{"url":"https://github.com/bunlyfans/bunlyfans/issues"},"license":"ISC","author":{"name":"bunlyfans"},"repository":{"type":"git","url":"git+https://github.com/bunlyfans/bunlyfans.git","directory":"packages/log"},"homepage":"https://github.com/bunlyfans/bunlyfans/blob/main/packages/log/README.md","scripts":{"test:watch":"bun test --watch --coverage"},"exports":{"./global":"./src/global.ts","./scoped":"./src/scoped.ts","./local":"./src/scoped.ts"},"devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"engines":{"bum":"^1.0.0"},"gitHead":"2700f46e6d716eb2ddf81a60ed4b34adde9af1e7","_id":"@bunlyfans/log@0.1.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-RmKXIjxc3O3tx7J8Xl+LgrZRk9E0ruqLIA5FfRyXJyAdZTyHukIXqew/AnpnO/nsQ1Q6GqXeqrxv+2yCx5DDzg==","shasum":"38d85060b8b45c62750de05b801b239449bdffed","tarball":"https://registry.npmjs.org/@bunlyfans/log/-/log-0.1.0.tgz","fileCount":7,"unpackedSize":7837,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7juWRJKCSr9d9FePdwx7/IcfWPtx6ZHROEnhmuP3TyAIgJ/giBbFUequwZazRhYeAnKXREUWtY6Lhilxi7etRVp4="}]},"_npmUser":{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"},"directories":{},"maintainers":[{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log_0.1.0_1694421945849_0.21959001547620538"},"_hasShrinkwrap":false},"0.1.1":{"name":"@bunlyfans/log","description":"Simple logger, powered by Bun","type":"module","version":"0.1.1","keywords":["bun","bunlyfans"],"bugs":{"url":"https://github.com/bunlyfans/bunlyfans/issues"},"license":"ISC","author":{"name":"bunlyfans"},"repository":{"type":"git","url":"git+https://github.com/bunlyfans/bunlyfans.git","directory":"packages/log"},"homepage":"https://github.com/bunlyfans/bunlyfans/blob/main/packages/log/README.md","scripts":{"test:watch":"bun test --watch --coverage"},"exports":{"./global":"./src/global.ts","./scoped":"./src/scoped.ts","./local":"./src/scoped.ts"},"devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"engines":{"bum":"^1.0.0"},"gitHead":"a4d5943f320ebb67b4dc782a2dc71dba7189d06d","_id":"@bunlyfans/log@0.1.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-by0FU2z91h1q1G4fN8AOeX602SM1hFlQ+Q9rSP9Z42GGM8EwWbIC3Iqm+w4mBKZH2Pih5GMOwXyY42QLxQiPoQ==","shasum":"acc1691415e7a3c4d07d8e5a32f4035eee4a6975","tarball":"https://registry.npmjs.org/@bunlyfans/log/-/log-0.1.1.tgz","fileCount":7,"unpackedSize":7816,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDtCIGYOzXOn5D4bq1gQx1pB2pGH+6q4dzgp7gfqLkVZAiEA2WbvxNCKopNgMvmG/lWfWwWfo2J7zCMyA72eEhP2OoE="}]},"_npmUser":{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"},"directories":{},"maintainers":[{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log_0.1.1_1694422309401_0.06668464175415134"},"_hasShrinkwrap":false},"0.1.2":{"name":"@bunlyfans/log","description":"Simple logger, powered by Bun","type":"module","version":"0.1.2","keywords":["bun","bunlyfans"],"bugs":{"url":"https://github.com/bunlyfans/bunlyfans/issues"},"license":"ISC","author":{"name":"bunlyfans"},"repository":{"type":"git","url":"git+https://github.com/bunlyfans/bunlyfans.git","directory":"packages/log"},"homepage":"https://github.com/bunlyfans/bunlyfans/blob/main/packages/log/README.md","scripts":{"test:watch":"bun test --watch --coverage"},"exports":{"./global":"./src/global.ts","./scoped":"./src/scoped.ts","./local":"./src/scoped.ts"},"devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"engines":{"bum":"^1.0.0"},"gitHead":"a4d5943f320ebb67b4dc782a2dc71dba7189d06d","_id":"@bunlyfans/log@0.1.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-t2FNd6/KAnsFuIb9adkgzviCljR57Kt0PgnMI5HBsNuoIduERJTc4f/icIT3NUXGfDWgxtD1pFAm+41BxKkSBg==","shasum":"2f5fce0f2fa92940463115af041fa64b94550be4","tarball":"https://registry.npmjs.org/@bunlyfans/log/-/log-0.1.2.tgz","fileCount":7,"unpackedSize":7815,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClXRnoDYKFyUUMDaC4svdq0l92dLl010oMkbij0L7MfAiEAtptA/dJ08dm6436V5UHovanGRM796DC7UZe9jxg1bbg="}]},"_npmUser":{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"},"directories":{},"maintainers":[{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log_0.1.2_1694422404698_0.29003385477186083"},"_hasShrinkwrap":false},"0.1.3":{"name":"@bunlyfans/log","description":"Simple logger, powered by Bun","type":"module","version":"0.1.3","keywords":["bun","bunlyfans"],"bugs":{"url":"https://github.com/bunlyfans/bunlyfans/issues"},"license":"ISC","author":{"name":"bunlyfans"},"repository":{"type":"git","url":"git+https://github.com/bunlyfans/bunlyfans.git","directory":"packages/log"},"homepage":"https://github.com/bunlyfans/bunlyfans/blob/main/packages/log/README.md","scripts":{"test:watch":"bun test --watch --coverage"},"exports":{"./global":"./src/global.ts","./scoped":"./src/scoped.ts","./local":"./src/scoped.ts"},"devDependencies":{"bun-types":"latest"},"peerDependencies":{"typescript":"^5.0.0"},"engines":{"bum":"^1.0.0"},"gitHead":"5a5e039da176d3055648dcd648079d8c81a7cd96","_id":"@bunlyfans/log@0.1.3","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-UG+2uvOPd4F1T5bhMtFiDVG5XxRQb3IMO155xTExZEa0L7wOILPNTmjZkZ0YLKApr6sMJM2h/9fHW8EhfQrMbA==","shasum":"1acd3d29c5917af361639580c0c5c3e286916b4f","tarball":"https://registry.npmjs.org/@bunlyfans/log/-/log-0.1.3.tgz","fileCount":7,"unpackedSize":7708,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxXfFVe+8cGyPzODyluW8uUa+W4u2QS1UDg3XS40vrXAiEAz4jP278lI7qwewWGDwtIl0nIqqwFZBpeB6cSmFgeFGg="}]},"_npmUser":{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"},"directories":{},"maintainers":[{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/log_0.1.3_1694438031629_0.4391213411533019"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-11T08:45:45.758Z","0.1.0":"2023-09-11T08:45:46.083Z","modified":"2023-09-11T13:13:52.003Z","0.1.1":"2023-09-11T08:51:49.597Z","0.1.2":"2023-09-11T08:53:24.910Z","0.1.3":"2023-09-11T13:13:51.786Z"},"maintainers":[{"name":"apastuhov","email":"aleksey.pastuhov@gmail.com"}],"description":"Simple logger, powered by Bun","homepage":"https://github.com/bunlyfans/bunlyfans/blob/main/packages/log/README.md","keywords":["bun","bunlyfans"],"repository":{"type":"git","url":"git+https://github.com/bunlyfans/bunlyfans.git","directory":"packages/log"},"author":{"name":"bunlyfans"},"bugs":{"url":"https://github.com/bunlyfans/bunlyfans/issues"},"license":"ISC","readme":"# @bunlyfans/log\n\n![Bun Version](https://img.shields.io/badge/bun-v1.0.0-blue)\n![Version](https://img.shields.io/npm/v/@bunlyfans/log.svg)\n![Build Status](https://img.shields.io/badge/build-passed-success)\n![Test Coverage](https://img.shields.io/badge/coverage-100-success)\n\nSimple and colorful logger for your Bun project!\n\n![Screenshot](screenshot/screenshot.png)\n\n## Installation\n\n```bash\nbun add @bunlyfans/log\n```\n\n## Usage\n\nAs everything in Bun - it just works out of the box. You only need to import it once:\n\n```typescript\nimport '@bunlyfans/log/global';\n```\n\nAnd use across the app:\n\n```typescript\nlog.s('Hello world!'); // short for log.success\nlog.o('Hello world!'); // short for log.ok (alias for success)\nlog.l('Hello world!'); // short for log.log\nlog.i('Hello world!'); // short for log.info\nlog.d('Hello world!'); // short for log.debug\nlog.e('Hello world!'); // short for log.error\nlog.w('Hello world!'); // short for log.warn\n```\n\nOr create scoped logger:\n\n```typescript\nimport Log from '@bunlyfans/log/scoped';\n// import Log from '@bunlyfans/log/local'; will also work\n\nconst logger = Log({ scope: 'MyLogger' });\n\nlogger.s('Hello world!');\nlogger.o('Hello world!');\nlogger.l('Hello world!');\nlogger.i('Hello world!');\nlogger.d('Hello world!');\nlogger.e('Hello world!');\nlogger.w('Hello world!');\n\n// will output:\n// [MyLogger] Hello world!\n```\n\nIf colors are not supported - it will fallback to plain text, but will display log-level **always**, like this:\n\n```\n[OK]   Hello world!\n[LOG]   Hello world!\n[INFO]  Hello world!\n[DEBUG] Hello world!\n[ERROR] Hello world!\n[WARN]  Hello world!\n```\n","readmeFilename":"README.md"}