GamePortrait/node_modules/strip-eof
2026-01-16 17:47:53 +08:00
..
index.js Initial commit: GamePortrait 竖屏版 - 深色豪华主题 2026-01-16 17:47:53 +08:00
license Initial commit: GamePortrait 竖屏版 - 深色豪华主题 2026-01-16 17:47:53 +08:00
package.json Initial commit: GamePortrait 竖屏版 - 深色豪华主题 2026-01-16 17:47:53 +08:00
readme.md Initial commit: GamePortrait 竖屏版 - 深色豪华主题 2026-01-16 17:47:53 +08: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