Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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