UNPKG

nipsum

Version:

Nipsum allows you to generate words, sentences and paragraphs of dummy text in the command line.

60 lines (53 loc) 1.22 kB
# Nipsum **N**ode **ipsum** allows you to generate dummy text in the command line. Dummy text generator written by Fatih Kadir Akın - https://github.com/f/loremjs ### Installation 1) Download nipsum and navigate to the directory ```bash $ git clone https://github.com/btcrooks/nipsum.git $ cd nipsum ``` 2) Download dependencies ```bash $ npm install ``` 3) Install nipsum globally (If at first you don't succeed, sudo and try again :smirk: ) ```bash $ npm install -g ``` ### Usage Nipsum takes a single option followed by an argument: ```bash $ nipsum [OPTIONS] [ARGS] ``` Generate words: ```bash $ nipsum -w <count> ``` Generate sentences: ```bash $ nipsum -s <count> ``` Generate paragraphs: ```bash $ nipsum -p <count> ``` you can alseo format text using `--format=«option»`: ```bash $ nipsum -w «count» --format=caps $ nipsum -w «count» --format=titlecase ``` Help: ```bash $ nipsum -h ``` ### Getting Fancy :sunglasses: Pair `nipsum` with `pbcopy` to send text straight to your clipboard. ```bash $ nipsum -p 5 | pbcopy ``` ### Roadmap - [ ] Use a flag to send text to the clipboard. - [ ] Generate by character count. - [x] Text formatting - [x] Publish on NPM. https://www.npmjs.com/package/nipsum