https://github.com/appsweet-co/debug
Makes your console logs much better
https://github.com/appsweet-co/debug
console functional-programming logger
Last synced: about 1 year ago
JSON representation
Makes your console logs much better
- Host: GitHub
- URL: https://github.com/appsweet-co/debug
- Owner: Appsweet-co
- License: mit
- Created: 2020-09-28T15:41:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-15T17:41:35.000Z (over 4 years ago)
- Last Synced: 2025-03-16T08:31:49.169Z (about 1 year ago)
- Topics: console, functional-programming, logger
- Language: TypeScript
- Homepage: https://appsweet-co.github.io/debug/
- Size: 299 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@appsweet-co/debug
Makes your console logs much better.
[](#install)
## ➤ Install
```sh
npm install @appsweet-co/debug
```
[](#usage)
## ➤ Usage
Import utilities directly into your files:
```ts
import { Debug, DebugOpts } from '@appsweet-co/debug';
const config: DebugOpts = {
disabled: ['warn'],
prefix: 'FooBar',
showMeta: true
};
const debug = Debug(config);
debug.log('Hello World')
// [LOG] [FooBar] Hello World
debug.warn('Goodbye World');
//
```
[](#documentation)
## ➤ Documentation
We generate API documentation using [TypeDoc](http://typedoc.org/). View the docs page [here](https://appsweet-co.github.io/debug).
[](#updating-this-readme)
## ➤ Updating This README
We generate this README with the [@appnest/readme](https://github.com/andreasbm/readme) tool.
Run `npx @appnest/readme generate` or `npm run readme` to update this file.
[](#author)
## ➤ Author
👤 **Appsweet.co**
* Website: http://a6t.co
* Github: [@appsweet-co](https://github.com/appsweet-co)
[](#-contributing)
## ➤ 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/appsweet-co/debug/issues).
[](#show-your-support)
## ➤ Show your support
Give a ⭐️ if this project helped you!