1.0.1 • Published 3 years ago
incremental-name v1.0.1
Incremental Name
This is a util for creating a new string with incremental number
Installation
npm i incremental-nameUsage
import incrementalName from 'incremental-name'
let newName = incrementalName({ existingNames: ['test', 'test_1'], name: 'test' })
// newName is test_2API
| API | DESCRIPTION |
|---|---|
| existingNames | list of all the existing names |
| name | new proposed name |
Zero external dependencies