# Install tsr with npm

TypeScript Remove (tsr) is a utility that removes unused code from TypeScript projects – It's like tree shaking, but for source files. Version 1.3.4 via npm; verified 2025-01-08.

## Install

```sh
sudo av install npm:tsr
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g tsr
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:tsr
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/tsr>
- **Version:** 1.3.4
- **Source summary:** TypeScript Remove (tsr) is a utility that removes unused code from TypeScript projects – It's like tree shaking, but for source files
- **Homepage:** <https://github.com/line/tsr#readme>
- **Repository:** <https://github.com/line/tsr>
- **Upstream docs:** <https://github.com/line/tsr#readme>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/tsr/-/tsr-1.3.4.tgz>
- **Issue tracker:** <https://github.com/line/tsr/issues>
- **Published:** 2025-01-08T08:28:07.844Z
- **Last updated:** 2025-01-08T08:28:07.844Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- tsr (cli)
- tsr (alias)

## Dependencies

- mri
- picocolors

## Build dependencies

- @eslint/js
- @types/node
- esbuild
- eslint-config-prettier
- eslint-plugin-prettier
- prettier
- strip-ansi
- tsx
- typescript-eslint

## Install behavior

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

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.3.4
- Package-manager updated: 2025-01-08
- Local data: ok
- Upstream repository: https://github.com/line/tsr
- 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 tsr. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Beta: 1.1.0-beta.0, Latest: 1.3.4
- **Version Count:** 13
- **Maintainers:** kazushisan
- **Author:** Kazushi Konosu
- **Publisher:** kazushisan
- **Peer Dependencies:** typescript
- **Integrity:** sha512-VHGK2GNokLaQ2OXdL4kE8+U9Dn6EWmDEZ/HdoFCnOoyR6ZFxi0QdzshPs7ZJ1xY9lfi+pQ0hZI5fLZAHZIJ+GA==
- **Shasum:** 725e5ef6a55cec9a5433e4e075f6737872476432
- **Unpacked Size:** 83,384
- **File Count:** 0
- **Created At:** 2013-05-24T14:56:05.424Z
- **Latest Published At:** 2025-01-08T08:28:07.844Z
- **Modified At:** 2025-01-08T08:28:08.273Z


## Related links

- [Web development packages](https://pkg.so/web-dev-tools/) - Matched curated package taxonomy and local package facts.
- [tsc-baseline](https://pkg.so/npm/tsc-baseline/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.
- [tsdx](https://pkg.so/npm/tsdx/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.
- [skott](https://pkg.so/npm/skott/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Sources

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