napi-tokei
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

napi-tokei

napi-tokei is a npm package build with Rust, helping you count your code quickly.

Install

Choose your preferred package manager.


# NPM
$ npm install napi-tokei

# YARN
$ yarn add napi-tokei

# PNPM
$ pnpm install napi-tokei

Examples

import path from 'path'

import { tokei } from 'napi-tokei'

// path need to be included, please use absolute path
const include = [path.resolve(__dirname, '../../')]

// Exclude any path that contains any of these strings.
const exclude = ['packages']

tokei(include, exclude) // [{ lang: 'JavaScript', lines: 238, code: 228, comments: 1, blanks: 9 }]

/napi-tokei/

    Package Sidebar

    Install

    npm i napi-tokei

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    12.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • faga