Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p-chan/2ch-id-generator
A generator for anonymous user id like as 2ch
https://github.com/p-chan/2ch-id-generator
2ch 5ch
Last synced: about 2 months ago
JSON representation
A generator for anonymous user id like as 2ch
- Host: GitHub
- URL: https://github.com/p-chan/2ch-id-generator
- Owner: p-chan
- License: mit
- Created: 2018-07-08T00:29:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T21:29:17.000Z (almost 4 years ago)
- Last Synced: 2024-12-12T19:53:33.777Z (about 2 months ago)
- Topics: 2ch, 5ch
- Language: JavaScript
- Homepage: https://npm.im/package/2ch-id-generator
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 2ch-id-generator
> A generator for anonymous user id like as 2ch
## Getting Started
```
$ npm install 2ch-id-generator
``````javascript
const idGenerator = require('2ch-id-generator')
idGenerator() // -> bVBwT1fBg
```## API
```javascript
const idGenerator = require('2ch-id-generator')
idGenerator(options)
```- `options`
- `ip` - (String) IP address of contributor. Default: `127.0.0.1`
- `key` - (String) Unique key of bulletin board. Default: `news4vip`
- `rand` - (String) Random character string updated every day. Default: `fusianasan`
- `length` - (Number) Length of id. Default: `9`## License
MIT
## Author
[@p-chan](https://github.com/p-chan)