Template
1
0
mirror of https://github.com/actions/setup-node synced 2024-11-30 21:22:29 +08:00
setup-node/node_modules/strip-eof/readme.md
2019-08-05 15:18:52 -04:00

536 B

strip-eof Build Status

Strip the End-Of-File (EOF) character from a string/buffer

Install

$ npm install --save strip-eof

Usage

const stripEof = require('strip-eof');

stripEof('foo\nbar\n\n');
//=> 'foo\nbar\n'

stripEof(new Buffer('foo\nbar\n\n')).toString();
//=> 'foo\nbar\n'

License

MIT © Sindre Sorhus