Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-count

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-count

A CLI tool to count code lines and characters.

  • 1.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

code-count

Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads type-coverage

A CLI tool to count code lines and characters.

install

yarn global add code-count

usage

code-count . -i .ts -e node_modules,.git

or code-count src/index.ts

options

keydescription
-i,--includefile extension name, eg: ".ts,.html", repeatable
-e,--excludedirectories, eg: "node_modules,.git", repeatable
--debugdebug mode
-h,--helpPrint this message.
-v,--versionPrint the version

api

import { count } from 'code-count'

count('.', {
  includedFileExtensionNames: [ '.ts' ],
  excludedDirectories: [ 'node_modules', '.git' ]
})

FAQs

Package last updated on 06 Jul 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc