Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lassejlv/yourid
A simple id generator. Thats fast, easy, and fun to use.
https://github.com/lassejlv/yourid
javascript nodejs npm npm-package random
Last synced: 13 days ago
JSON representation
A simple id generator. Thats fast, easy, and fun to use.
- Host: GitHub
- URL: https://github.com/lassejlv/yourid
- Owner: lassejlv
- Created: 2022-01-08T17:28:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T08:41:55.000Z (over 2 years ago)
- Last Synced: 2025-01-11T13:00:57.045Z (15 days ago)
- Topics: javascript, nodejs, npm, npm-package, random
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## yourId
A simple id generator. Thats fast, easy, and fun to use.
## Whats new?
- [v1.1.1] (2022-12-2)
- Added `check update` command. So the package can check for updates.- [v1.2.3] (2022-15-2)
- Added new command `id` to generate a new id, to make it a lot easier.- [v1.4.1] (2022-8-4)
- Added custom keyspace, so you can use your own custom numbers, letters, and symbols.## Installation
```sh
$ npm install yourid
```## Usage
```js
var yourId = require("yourid");// Generate a new id
console.log(
yourId.generate({
length: 10, // the length of the random id string
keyspace: "customkeyspace", // the keyspace to use
prefix: "yourPrefix", // set a prefix
includePrefix: true, // you can set it to FALSE or TRUE
})
); // => Random ID String length 10 & Prefix yourPrefix
```