A chop()/chomp() library for Node.js
JavaScript
Pull request Compare This branch is 4 commits ahead, 66 commits behind mcandre:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
chop.js
package.json
test.js

README.md

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'