# babyid

> Generate 7 character baby/small id

Latest version **1.0.3** (published 2021-10-30) · ISC license · 0 weekly downloads

## Install

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

## 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 | 2021-10-30 |
| First published | 2021-10-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Abid Adhikari |
| Maintainers | abidadhikari |
| Keywords | babyid, slugid, miniurl, urlshortner, nanoid |

## Links

- npm: https://www.npmjs.com/package/babyid
- Repository: https://github.com/abidadhikari/BabyId
- Homepage: https://github.com/abidadhikari/BabyId#readme
- Issues: https://github.com/abidadhikari/BabyId/issues
- npm.io page: https://npm.io/package/babyid

## 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) — 2021-10-30
- 1.0.2 — 2021-10-30
- 1.0.1 — 2021-10-30
- 1.0.0 — 2021-10-30

## README

# BabyId

A tiny, secure, URL-friendly, unique string ID generator for JavaScript.

# Install
 ```
npm i babyid
```

# Import
```js
const BabyId=require("babyid");
```

# Use
```js
const shortParam=BabyId.generate();
console.log(shortParam);
```

# Examples
* By Default length of 7 argument is passed
```js
const shortParam=BabyId.generate();
console.log(shortParam);
//m86ZLZL
```

* Even if  length smaller than 7 is passed ,default string length is 7
```js
const shortParam=BabyId.generate(5);
console.log(shortParam);
//49ZBjZQ
```

* If length over 7 is passed respective string length is returned
```js
const shortParam=BabyId.generate(11);
console.log(shortParam);
//33z76XRcISd
```


# 🔴DONT'S
* Passing other dataType except Numbers Like Strings
```js
const shortParam=BabyId.generate("nine);
console.log(shortParam);
//
```

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