# render-id

> Converts a string pattern to a string by replacing all the '#' to '0' after replacing the next counter number.

Latest version **1.0.3** (published 2020-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install render-id
pnpm add render-id
yarn add render-id
bun add render-id
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-04-01 |
| First published | 2019-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jugnu Agrawal |
| Maintainers | jugnuagrawal |
| Keywords | render, pattern, id, convert |

## Links

- npm: https://www.npmjs.com/package/render-id
- Repository: https://github.com/jugnuagrawal/render-id
- Homepage: https://github.com/jugnuagrawal/render-id#readme
- Issues: https://github.com/jugnuagrawal/render-id/issues
- npm.io page: https://npm.io/package/render-id

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-04-01
- 1.0.2 — 2020-02-23
- 1.0.1 — 2020-02-04
- 1.0.0 — 2019-03-19

## README

# render-id
Converts a string pattern to a string by replacing all the '#' to '0' after replacing the next counter number.

### Example 1
```javascript
const renderId = require('render-id');
renderId.render('TES#######',12);

// output : TES0000012
```

### Example 2
```javascript
const renderId = require('render-id');
renderId.render('XYZ#####99##',1234);

// output : XYZ000129934
```

### Example 3
```javascript
const renderId = require('render-id');
renderId.render('ABC##99##',123456);

// output : ABC12993456
```

### Example 4
```javascript
const renderId = require('render-id');
renderId.render('${FY-IN}/##99##',123456);

// output : 2019-2020/12993456
```

### Supported Fiscal Years

| Syntax | Description |
| - | - |
| ${FY-IN} | Indian Fiscal Year |
| ${FY-GB} | United Kingdom Fiscal Year |
| ${FY-US} | United States Fiscal Year |

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