1.0.1 • Published 3 years ago

incremental-name v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Incremental Name

This is a util for creating a new string with incremental number

Installation

npm i incremental-name

Usage

import incrementalName from 'incremental-name'
let newName = incrementalName({ existingNames: ['test', 'test_1'], name: 'test' })
// newName is test_2

API

APIDESCRIPTION
existingNameslist of all the existing names
namenew proposed name

Github repo

Zero external dependencies