typescript-action/node_modules/strip-eof
Danny McCormick a81e837991 Add github package 2019-07-29 14:53:34 -04:00
..
index.js Add github package 2019-07-29 14:53:34 -04:00
license Add github package 2019-07-29 14:53:34 -04:00
package.json Add github package 2019-07-29 14:53:34 -04:00
readme.md Add github package 2019-07-29 14:53:34 -04:00

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