1.0.2 • Published 7 years ago
string-first-line v1.0.2
string-first-line
Get first line from string
Install:
$ npm install string-first-line
Usage:
require('string-first-line')
let str = `This
contains
multiple
lines`
console.log(str.firstLine) // "This"
License: MIT