JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16083
  • Score
    100M100P100Q194758F
  • License MIT

Remove blank lines from a string.

Package Exports

  • remove-blank-lines

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remove-blank-lines) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

remove-blank-lines

Patreon PayPal AMA Version Downloads Get help on Codementor

Remove blank lines from a string.

☁️ Installation

$ npm i --save remove-blank-lines

📋 Example

const removeEmptyLines = require("remove-blank-lines");

console.log(removeEmptyLines(
    `Hello

World!


  **   **

  **   **

     -

*         *

 *********`
));
// =>
// Hello
// World!
//   **   **
//   **   **
//      -
// *         *
//  *********

📝 Documentation

removeBlankLines(input)

Remove blank lines from a string.

Params

  • String input: The input string.

Return

  • String The result string (without blank lines).

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

  • tilda—Tiny module for building command line tools.

📜 License

MIT © Ionică Bizău