Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/surajv311/npm_package-getrstr
NPM Package - getrstr = to generate a random string of given length.
https://github.com/surajv311/npm_package-getrstr
node npm npm-package package random-generation
Last synced: 2 months ago
JSON representation
NPM Package - getrstr = to generate a random string of given length.
- Host: GitHub
- URL: https://github.com/surajv311/npm_package-getrstr
- Owner: Surajv311
- License: mit
- Created: 2020-09-15T14:41:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T10:47:22.000Z (about 4 years ago)
- Last Synced: 2023-08-18T11:54:16.954Z (over 1 year ago)
- Topics: node, npm, npm-package, package, random-generation
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/getrstr
- Size: 4.88 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# npm getrstr
#### A simple npm package to generate a given length of random characters.
![npm version](https://img.shields.io/badge/npm-v1.1.1-blue)```js
const random = require('getrstr');
// to generate random string of length 'x'
console.log(random(x));```
## Installation
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/).Before installing, [download and install Node.js](https://nodejs.org/en/download/).
If this is a brand new project, make sure to create a `package.json` first with
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):```bash
$ npm install getrstr
```## Features
* Generates a string of wide variety of characters from the library.
* The library includes chars, numbers, special symbols.
* Useful to generate strong passwords.## Quick Start
```bash
$ npm install getrstr
``````bash
// import and use the module.
// Pass an integer as a parameter to generate the random string.
```## People
The original author of ```getrstr``` is [Suraj Verma](https://github.com/surajv311)
## License
MIT