Skip to content

nicfontaine/clpsm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clipboard + Lorem Ipsum

clpsm logo

The greatest tool you always knew you never needed. 'Cause fuck those shitty monetized sites that take 3 clicks and 700 http requests to get to some text that you copied into a Slack snippet back in the Snow Leopard days but never starred.

Now all of your "rock star" design needs are just a mainline npm speedball away. Just make sure your terminal is running the latest version of Bootstrap and supports 4k textures.

Nah, jk.. it just uses clipboardy.

NPM

npmjs.com/package/clpsm

Use As Console > Clipboard

$ sudo npm i clpsm -g   # Install
$ clpsm                 # Single paragraph
$ clpsm 3               # 3 paragraphs
$ clpsm 50 -s           # 50 short paragraphs
$ clpsm 5 -s -p         # 5 short, html tagged paragraphs

Use As Module

$ npm i clpsm --save                # Install
const clpsm = require("clpsm")     // Require

clpsm(2,["p"]).then( text => {
    console.log(text)
  }, err => {
    console.log(err)
  })

// 2 html tagged paragraphs will be logged to console...
  • Returns a promise with Lorem Ipsum text
  • Takes arguments: (Number, ["s","p"])
    • Number is paragraph length
    • [] can contain flags for s short, or p html tagged paragraphs
    • Can also be called with no args clpsm(), or just a Number clpsm(200)

Community Response

Top notch stuff ...it's the next systemd!

- Linus Torval (Free Software Lobbyist)

Absolutely not proprietary

- Richard Stollnam (Acronym Wizard)

Makes me rethink everything I thought I knew about the Unix Philosophy.

- Dennis (The Menace) Richie

Latin is the fundamental building block of our language.

- Mrs. Sullivan, (6th Grade Literature)


More

website: nicfontaine.com
twitter: @ngpfontaine

License

Buy it, use it, break it, fix it, trash it, change it, mail, upgrade it.