increment strings
increment('user', '-') // user-1
increment('user-1', '-') // user-2
increment('user-999', '-') // user-1000
$ npm install increment
or in the browser...
$ component install matthewmueller/increment
Increment str
by 1. Give an optional prefix
.
MIT