unique-type
Takes a mostly unique string and ensures that it is globally unique.
const uniqueType = require('unique-type');
uniqueType('foo'); // foo
uniqueType('foo'); // foo:1
Takes a mostly unique string and ensures that it is globally unique.
const uniqueType = require('unique-type');
uniqueType('foo'); // foo
uniqueType('foo'); // foo:1
npm i unique-type
3
1.1.0
Apache-2.0