Neverending Programming Mistakes
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

chop

0.0.1 • Public • Published

chop - A chop()/chomp() library for Node.js

EXAMPLE

$ node
> var chop = require("./chop");
undefined
> chop.chop("Howdy!");
'Howdy'
> chop.chop("Howdy!\n");
'Howdy!'
> chop.chop("Howdy!\n\n");
'Howdy!\n'
> chop.chomp("Howdy!\n\n");
'Howdy!'
> chop.chomp("Howdy!\r\n");
'Howdy!'
> chop.chop("Howdy!\r\n");
'Howdy!\r'

Keywords

none

install

npm i chop

Downloadsweekly downloads

4

version

0.0.1

license

none

repository

githubgithub

last publish

collaborators

  • avatar