gentle-warning-test3

gentleWarning prints each message only once

Usage no npm install needed!

<script type="module">
  import gentleWarningTest3 from 'https://cdn.skypack.dev/gentle-warning-test3';
</script>

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