# incrnum

> a magically incrementing number value

Latest version **0.1.0** (published 2013-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install incrnum
pnpm add incrnum
yarn add incrnum
bun add incrnum
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-10-23 |
| First published | 2013-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | bumblehead |
| Keywords | increment, number, unique |

## Links

- npm: https://www.npmjs.com/package/incrnum
- Repository: https://github.com/iambumblehead/incrnum
- npm.io page: https://npm.io/package/incrnum

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2013-10-23

## README

incrnum
=======
**(c)[Bumblehead][0], 2013** [MIT-license](#license)  

### Overview:

incrnum provided an incremented number. It can be coerced to a string and the result will be an icremented number. It can be called as a function to return an incremented number.

Coerce incrnum to a string or call it as a function:

```javascript
console.log('hello ' + incrnum + ' goodbye ' + incrnum); // hello 0 goodbye 1
console.log(incrnum()); // 2
```

The source code:

```javascript
var incrnum = ((typeof module === 'object') ? module : {}).exports = (function (uid, fn) {
    fn = function () { return uid++; };
    fn.toString = function () { return uid++; };
    return fn;
}(0));
```

---------------------------------------------------------
#### <a id="install"></a>Install:

incrnum may be downloaded directly or installed through `npm`.

 * **npm**   

 ```bash
 $ npm install incrnum
 ```

 * **Direct Download**
 
 ```bash  
 $ git clone https://github.com/iambumblehead/incrnum.git
 ```

---------------------------------------------------------
#### <a id="test"></a>Test:

 to run tests, use `npm test` from a shell.

 ```bash
 $ npm test
 ```

---------------------------------------------------------

#### <a id="license">License:

(The MIT License)

Copyright (c) 2013 [Bumblehead][0] <chris@bumblehead.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---
_Source: https://npm.io/package/incrnum · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
