https://github.com/abranhe/r4nd0mstr1ng
r4nd0mstr1ng : π Random String Generator
https://github.com/abranhe/r4nd0mstr1ng
random random-string
Last synced: 11 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-26T02:44:30.000Z (almost 7 years ago)
- Last Synced: 2025-01-10T23:34:56.757Z (over 1 year 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://travis-ci.org/abranhe/r4nd0mstr1ng)
[](https://github.com/abranhe)
[](https://cash.me/$abranhe)
[](https://patreon.com/abranhe)
[](https://github.com/abranhe/r4nd0mstr1ng/blob/master/license)
[](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)