Options
All
  • Public
  • Public/Protected
  • All
Menu

@appsweet-co/debug

@appsweet-co/debug

Makes your console logs much better.


Version Documentation License

-----------------------------------------------------

➤ Install

npm install @appsweet-co/debug

-----------------------------------------------------

➤ Usage

Import utilities directly into your files:

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');
// <No output>

-----------------------------------------------------

➤ Documentation

We generate API documentation using TypeDoc. View the docs page here.

-----------------------------------------------------

➤ Updating This README

We generate this README with the @appnest/readme tool.

Run npx @appnest/readme generate or npm run readme to update this file.

-----------------------------------------------------

➤ Author

👤 Appsweet.co

-----------------------------------------------------

➤ 🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

-----------------------------------------------------

➤ Show your support

Give a ⭐️ if this project helped you!

Generated using TypeDoc