@iamso/nonsense
Nonsense Generator
Last updated 10 months ago by iamso .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @iamso/nonsense -g
SYNC missed versions from official npm registry.

nonsense

Heavily inspired by Jeff Holman's nonsense generator.

CLI/Package to create nonsense text, random words, sentences and paragraphs.

Install

npm install -g @iamso/nonsense

Usage

Programmatically

const Nonsense = require('@iamso/nonsense');

const nonsense = new Nonsense();

// get random word(s)
const words = nonsense.words(1);

// get random sentence(s)
const sentences = nonsense.sentences(1);

// get random paragraph(s)
const paragraphs = nonsense.paragraphs(1);

// get random paragraph(s) as HTML
const paragraphsHtml = nonsense.paragraphs(1, true);

Command Line

# get random word(s)
nonsense words [length]

# get random sentence(s)
nonsense sentences [length]

# get random paragraph(s)
nonsense paragraphs [length]

# get random paragraph(s) as HTML
nonsense paragraphs [length] -H

Note: The output of all these commands can automatically be copied to the clipboard by adding the option -c at the end.

License

ISC License

Current Tags

  • 0.1.0                                ...           latest (10 months ago)

1 Versions

  • 0.1.0                                ...           10 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |