UNPKG

string-first-line

Version:
26 lines (18 loc) 411 B
string-first-line ==== [![Build Status](https://travis-ci.org/UselessNodePackages/string-first-line.svg?branch=master)](https://travis-ci.org/UselessNodePackages/string-first-line) Get first line from string ## Install: ```bash $ npm install string-first-line ``` ## Usage: ```js require('string-first-line') let str = `This contains multiple lines` console.log(str.firstLine) // "This" ``` License: MIT