# Install ctrf with npm

CTRF reference implementation in TypeScript for creating and validating CTRF documents. Version 0.2.1 via npm; verified 2026-06-06.

## Install

```sh
sudo av install npm:ctrf
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g ctrf
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:ctrf
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/ctrf>
- **Version:** 0.2.1
- **Source summary:** CTRF reference implementation in TypeScript for creating and validating CTRF documents.
- **Homepage:** <https://ctrf.io>
- **Repository:** <https://github.com/ctrf-io/ctrf-js>
- **Upstream docs:** <https://ctrf.io>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/ctrf/-/ctrf-0.2.1.tgz>
- **Issue tracker:** <https://github.com/ctrf-io/ctrf-js/issues>
- **Published:** 2026-06-06T17:15:37.667Z
- **Last updated:** 2026-06-06T17:15:37.667Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- ctrf (cli)
- ctrf (alias)

## Dependencies

- ajv
- ajv-formats
- glob
- yargs

## Build dependencies

- @arethetypeswrong/cli
- @d2t/vitest-ctrf-json-reporter
- @eslint/js
- @types/node
- @types/yargs
- @vitest/coverage-v8
- eslint
- prettier
- tsup
- typedoc
- typedoc-plugin-markdown
- typescript
- typescript-eslint
- vitest

## Install behavior

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

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.2.1
- Package-manager updated: 2026-06-06
- Local data: ok
- Upstream repository: https://github.com/ctrf-io/ctrf-js
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for ctrf. 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, Next: 0.2.0-next-1
- **Version Count:** 35
- **Maintainers:** ctrf-io
- **Author:** Matthew Poulton-White
- **Publisher:** GitHub Actions
- **Engines:** Node: >=20.19.0
- **Integrity:** sha512-iUo/eHcM5yG8aBS3Miqce9NNiZCtmVZxPpgmZEJIZ96bubwj7IpZx3IqsDqCH2FZjR71EH2NLtbBhtfzDjpaUg==
- **Shasum:** 81ef73a8bfcb17fffc027f2fdf49a4c729f7f623
- **Unpacked Size:** 223,677
- **File Count:** 0
- **Created At:** 2024-06-09T17:29:36.426Z
- **Latest Published At:** 2026-06-06T17:15:37.667Z
- **Modified At:** 2026-06-06T17:15:37.928Z


## Related links

- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [junit-to-ctrf](https://pkg.so/npm/junit-to-ctrf/) - Both packages work with overlapping file formats or content types. Shared terms: cli, ctrf, developer, developer-tools, glob.
- [jest-stare](https://pkg.so/npm/jest-stare/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, json, report.
- [detox](https://pkg.so/npm/detox/) - Both packages work with overlapping file formats or content types. Shared terms: ajv, cli, developer, developer-tools, glob.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
