[go: up one dir, main page]

increment

0.0.1 • Public • Published

increment

increment strings

Example

increment('user', '-') // user-1
increment('user-1', '-') // user-2
increment('user-999', '-') // user-1000

Installation

$ component install matthewmueller/increment

API

increment(str, [ prefix ])

Increment str by 1. Give an optional prefix.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i increment

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mattmueller