Socket
Book a DemoInstallSign in
Socket

line-count

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

line-count

Count the lines in a string.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
868
16.51%
Maintainers
1
Weekly downloads
 
Created
Source

line-count NPM version

Count the lines in a string.

Install

npm

npm i line-count --save

Usage

var count = require('line-count');
console.log(count('a\nb\nc'));
//=> '3'

console.log(count('a\r\nb\r\nc'));
//=> '3'

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on August 25, 2014.

Keywords

bin

FAQs

Package last updated on 25 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts