0.0.1 • Published 8 years ago
@joegesualdo/is-empty-line v0.0.1
is-empty-line
Detect if a line is empty.
Install
$ npm install --save @joegesualdo/is-empty-line
Usage
import isEmptyLine from ('@joegesualdo/is-empty-line')
isEmptyLine('\n ');
// => true
isEmptyLine(' ');
// => true
isEmptyLine('x');
// => false
Test
$ npm test
API
isEmptyLine(str)
Name | Type | Required | Default | Description |
---|---|---|---|---|
str | String | yes | N/A | The string you want to test |
import isEmptyLine from ('@joegesualdo/is-empty-line')
isEmptyLine('\n ');
// => true
isEmptyLine(' ');
// => true
isEmptyLine('x');
// => false
Build
$ npm run build
License
MIT © Joe Gesualdo
0.0.1
8 years ago