@esm2cjs/strip-final-newline

Strip the final newline character from a string/buffer. This is a fork of sindresorhus/strip-final-newline, but with CommonJS support.

Browse on unpkg