gentle-warning
v0.3.0
Published
gentleWarning prints each message only once
Downloads
2
Readme
gentle-warning
Warn users about anything but only once
Installation
npm install gentle-warning
Usage example
import { gentleWarning } from 'gentle-warning';
const warn = gentleWarning('App');
function doSomething() {
warn('Hello! I will warn you only once!');
}
doSomething(); // will warn you
doSomething(); // no warnings
doSomething(); // no warnings