unique-type

Takes a mostly unique string and ensures that it is globally unique.

Usage no npm install needed!

<script type="module">
  import uniqueType from 'https://cdn.skypack.dev/unique-type';
</script>

README

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