$ 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'
timoxley/node-chop
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A chop()/chomp() library for Node.js
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published