How to use strip-final-newline - 1 common examples

To help you get started, we’ve selected a few strip-final-newline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sanack / node-jq / src / exec.js View on Github external
process.on('close', code => {
      if (code !== 0) {
        return reject(Error(stderr))
      } else {
        return resolve(stripFinalNewline(stdout))
      }
    })
  })

strip-final-newline

Strip the final newline character from a string or Uint8Array

MIT
Latest version published 4 months ago

Package Health Score

74 / 100
Full package analysis

Popular strip-final-newline functions