@rnd7/rum-random-string

1.0.2 • Public • Published

rum-random-string

Rumbullion random string generator

See also:

rum

Download

builds

Installation

npm i @rnd7/rum-random-string

Include

Via script tag

<script src="node_modules/@rnd7/rum-random-string/dist/rum-random-string-browser.js"></script>

Using require

const randomString = require('@rnd7/rum-random-string').randomString

Using import

import { randomString } from '@rnd7/rum-random-string'

Usage

console.log(randomString())
console.log(randomString(8))
console.log(randomString(8, "0123456789"))

API

Defaults

export const RANDOM_STRING_DEFAULTS = {
  length: 16,
  charset: "abcdefghijklmnopqrstuvwxyz1234567890"
}

randomString

randomString(length, charset)

Development

Installation

Install dependencies such as rum-maker and rum-publisher

npm install

Build

Production build

npm run build

Publish

Publish to github and npm using

npx publish-rum -m "My commit message"

License

See the LICENSE file for software license rights and limitations (MIT).

Readme

Keywords

none

Package Sidebar

Install

npm i @rnd7/rum-random-string

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

8.34 kB

Total Files

10

Last publish

Collaborators

  • rnd7