# Install node-sloc with npm

A small tool for counting SLOC. Version 0.2.1 via npm; verified 2021-11-23.

## Install

```sh
sudo av install npm:node-sloc
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g node-sloc
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:node-sloc
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/node-sloc>
- **Version:** 0.2.1
- **Source summary:** A small tool for counting SLOC.
- **Homepage:** <https://github.com/edvinh/node-sloc#readme>
- **Repository:** <https://github.com/edvinh/node-sloc>
- **Upstream docs:** <https://github.com/edvinh/node-sloc#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/node-sloc/-/node-sloc-0.2.1.tgz>
- **Issue tracker:** <https://github.com/edvinh/node-sloc/issues>
- **Published:** 2021-11-23T20:44:13.572Z
- **Last updated:** 2021-11-23T20:44:13.572Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- node-sloc (cli)
- sloc (cli)
- node-sloc (alias)

## Dependencies

- chalk
- graceful-fs
- micromatch
- minimist

## Build dependencies

- @types/chai
- @types/chai-as-promised
- @types/expect
- @types/graceful-fs
- @types/micromatch
- @types/minimist
- @types/mocha
- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- chai
- chai-as-promised
- eslint
- eslint-config-prettier
- eslint-config-typescript
- eslint-plugin-prettier
- husky
- mocha
- np
- nyc
- prettier
- ts-mocha
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.2.1
- Package-manager updated: 2021-11-23
- Local data: ok
- Upstream repository: https://github.com/edvinh/node-sloc
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for node-sloc. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.2.1
- **Version Count:** 17
- **Maintainers:** edvinh
- **Author:** Edvin Havic
- **Publisher:** edvinh
- **Engines:** Node: >=8.0.0
- **Integrity:** sha512-88LR99IQm7fFyLB7syaa9z4tb8qTHyj6Lg9W9AYCOc8Wqa/Xmg7NuV+Sdtzg+dCUN6UgJ4iaAPdGj5/AF02l/w==
- **Shasum:** 7b4ac6bead860a90a52f3647bd2f32f62a9eb904
- **Unpacked Size:** 38,859
- **File Count:** 0
- **Created At:** 2017-04-22T01:24:58.093Z
- **Latest Published At:** 2021-11-23T20:44:13.572Z
- **Modified At:** 2022-06-21T21:50:08.737Z

## Other Package-Manager Records

- Nix - sloc: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/sl/sloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [sloc](https://www.automicvault.com/pkg/npm/sloc/) - Executable or command metadata overlaps with this package. Shared terms: analysis, cli, code, code-analysis, developer.
- [code-complexity](https://www.automicvault.com/pkg/npm/code-complexity/) - Both packages touch the same language runtime or ecosystem. Shared terms: analysis, cli, code, code-analysis, developer.
- [sloc](https://www.automicvault.com/pkg/brew/sloc/) - Executable or command metadata overlaps with this package. Shared terms: cli, code, developer, developer-tools, metrics.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
