github-pages-deploy-action/node_modules/strip-eof
2021-11-26 12:57:51 +00:00
..
index.js Deploy Production Code for Commit 36b163b938 🚀 2021-11-26 12:57:51 +00:00
license Deploy Production Code for Commit 36b163b938 🚀 2021-11-26 12:57:51 +00:00
package.json Deploy Production Code for Commit 36b163b938 🚀 2021-11-26 12:57:51 +00:00
readme.md Deploy Production Code for Commit 36b163b938 🚀 2021-11-26 12:57:51 +00: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