string-first-line
Version:
Get first line from string
26 lines (18 loc) • 411 B
Markdown
string-first-line
====
[](https://travis-ci.org/UselessNodePackages/string-first-line)
Get first line from string
```bash
$ npm install string-first-line
```
```js
require('string-first-line')
let str = `This
contains
multiple
lines`
console.log(str.firstLine) // "This"
```
License: MIT