Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/r4nd0mstr1ng
r4nd0mstr1ng : π Random String Generator
https://github.com/abranhe/r4nd0mstr1ng
random random-string
Last synced: 8 days ago
JSON representation
r4nd0mstr1ng : π Random String Generator
- Host: GitHub
- URL: https://github.com/abranhe/r4nd0mstr1ng
- Owner: abranhe
- License: mit
- Created: 2018-07-31T16:01:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T02:44:30.000Z (over 5 years ago)
- Last Synced: 2024-10-12T12:15:02.773Z (about 1 month ago)
- Topics: random, random-string
- Language: JavaScript
- Homepage: https://p.abranhe.com/r4nd0mstr1ng
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
Awesome Lists containing this project
README
# r4nd0mstr1ng> πRandom String Generator
[![](https://img.shields.io/travis/abranhe/r4nd0mstr1ng.svg?logo=travis)](https://travis-ci.org/abranhe/r4nd0mstr1ng)
[![](https://abranhe.com/badge.svg)](https://github.com/abranhe)
[![](https://cdn.abranhe.com/badges/cash-me.svg)](https://cash.me/$abranhe)
[![](https://cdn.abranhe.com/badges/patreon.svg)](https://patreon.com/abranhe)
[![](https://img.shields.io/github/license/abranhe/r4nd0mstr1ng.svg)](https://github.com/abranhe/r4nd0mstr1ng/blob/master/license)
[![](https://img.shields.io/npm/v/r4nd0mstr1ng.svg)](https://npmjs.com/package/r4nd0mstr1ng)## Install
```
$ npm install r4nd0mstr1ng
```## Usage
```js
const rand = require('r4nd0mstr1ng');console.log(rand());
//=> 'HH9ICHiBSjKnK219w3R6eKgI58ffMW'console.log(rand(7));
//=> 'dsdfGf4'
```## API
### rand()
Return Type: `string`
Default: `30`Return an string with default value of 30
### rand(number)
Return Type: `string`
Return an string with custom length
## Related
- [random-string-cli](https://github.com/abranhe/random-string-cli): CLI for this module
- [all-words](https://github.com/abranhe/all-words): Generate all available words (up to four letters) super fast.
- [randn](https://github.com/abranhe/randn): π’ Random number generator.## License
MIT Β© [Carlos Abraham](https://abranhe.com)