# Install sloc with npm

sloc is a simple tool to count SLOC (source lines of code). Version 0.3.2 via npm; verified 2024-02-06.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

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

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:sloc
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/sloc>
- **Version:** 0.3.2
- **Source summary:** sloc is a simple tool to count SLOC (source lines of code)
- **Homepage:** <https://github.com/flosse/sloc#readme>
- **Repository:** <https://github.com/flosse/sloc>
- **Upstream docs:** <https://github.com/flosse/sloc#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/sloc/-/sloc-0.3.2.tgz>
- **Issue tracker:** <http://github.com/flosse/sloc/issues>
- **Published:** 2024-02-06T01:59:16.743Z
- **Last updated:** 2024-02-06T01:59:16.743Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- sloc (cli)

## Dependencies

- async
- cli-table
- commander
- readdirp

## Build dependencies

- @coffeelint/cli
- chai
- coffeescript
- mocha

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepublish
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.3.2
- Package-manager updated: 2024-02-06
- Local data: ok
- Upstream repository: https://github.com/flosse/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 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.3.2
- **Version Count:** 25
- **Maintainers:** flosse
- **Author:** Markus Kohlhase
- **Publisher:** flosse
- **Integrity:** sha512-tnB+gi6TiFpt3qmCGfaV+78dfKwLiH5HRohkW+PnJYHNAcEdk408uxWG+F/3pu4w1eyCO2NC5CpZKuiyMac5GQ==
- **Shasum:** 210f3357582eec4d2d7020d93e7feb03a42dfb5e
- **Unpacked Size:** 35,294
- **File Count:** 0
- **Created At:** 2012-07-28T12:30:59.400Z
- **Latest Published At:** 2024-02-06T01:59:16.743Z
- **Modified At:** 2024-02-06T01:59:16.898Z

## Other Package-Manager Records

- Nix - sloc: normalized package name 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

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [sloc](https://www.automicvault.com/pkg/brew/sloc/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, code, count, developer, developer-tools.
- [node-sloc](https://www.automicvault.com/pkg/npm/node-sloc/) - Executable or command metadata overlaps with this package. Shared terms: analysis, cli, code, code-analysis, developer.
- [leasot](https://www.automicvault.com/pkg/npm/leasot/) - Local package facts share a topical domain. Shared terms: analysis, async, cli, code, code-analysis.
- [sloc](https://www.automicvault.com/pkg/brew/sloc/) - Same normalized package name exists in another local package ecosystem.

## 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
