diff --git a/README.md b/README.md index 793fb3d..b69e9f1 100755 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ For anyone interested with supporting this passion project, please check out [Co # Logmatic An overly complicated yet functional logger. +Package: [@tinnyterr/logmatic](https://www.npmjs.com/package/@tinnyterr/logmatic) ## Installation @@ -15,7 +16,7 @@ npm i logmatic --save-exact ### For Typescript -Typescript seemingly has a vendetta against index signatures. Whenever possible, set the following setting in your `tsconfig.json` or such: +Whenever possible, set the following setting in your `tsconfig.json` or such: ```json { @@ -41,9 +42,9 @@ As logmatic is currently in a very unstable state, many items may change in the To get started, import the project into your file and initialise the logger: ```javascript -const { Logger } = require('logmatic'); +const { Logger } = require('@tinnyterr/logmatic'); // OR -// import { Logger } from 'logmatic'; +// import { Logger } from '@tinnyterr/logmatic'; const log = new Logger("name").loggers; ``` @@ -51,9 +52,9 @@ const log = new Logger("name").loggers; WAIT! If you wish to alter the logger down the line (eg add logger handler functions), you will need to save the Logger class for later. The above code just accesses all the logger function. For example: ```javascript -const { Logger } = require('logmatic'); +const { Logger } = require('@tinnyterr/logmatic'); // OR -// import { Logger } from 'logmatic'; +// import { Logger } from '@tinnyterr/logmatic'; const logClass = new Logger("name"); const log = logClass.loggers diff --git a/package-lock.json b/package-lock.json index 97a1e6b..cc4ec01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tinnyterr/logmatic", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tinnyterr/logmatic", - "version": "2.2.0", + "version": "2.2.1", "license": "MPL-2.0", "dependencies": { "@biomejs/biome": "^1.9.4", diff --git a/package.json b/package.json index 1b51ef0..ed63f70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tinnyterr/logmatic", - "version": "2.2.0", + "version": "2.2.1", "homepage": "https://github.com/tinnyterr/logmatic#readme", "bugs": { "url": "https://github.com/tinnyterr/logmatic/issues"