0.0.1 • Published 8 years ago

@joegesualdo/is-empty-line v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
8 years ago

is-empty-line Build Status

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)

NameTypeRequiredDefaultDescription
strStringyesN/AThe 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