xiaofu-ruoyi-vue/node_modules/strip-eof
ffr b5131258d8 第一次提交 2024-04-23 08:05:40 +08:00
..
index.js 第一次提交 2024-04-22 22:43:17 +08:00
license 第一次提交 2024-04-23 08:05:40 +08:00
package.json 第一次提交 2024-04-22 22:43:17 +08:00
readme.md 第一次提交 2024-04-23 08:05:40 +08:00

readme.md

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