New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ts-prune

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-prune

![Build](https://img.shields.io/github/workflow/status/nadeesha/ts-prune/Run%20CI%20Pipeline) ![npm](https://img.shields.io/npm/dm/ts-prune) ![GitHub issues](https://img.shields.io/github/issues-raw/nadeesha/ts-prune)

  • 0.10.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
183K
decreased by-18.36%
Maintainers
1
Weekly downloads
 
Created

What is ts-prune?

The ts-prune npm package is a tool designed to help developers identify and remove unused exports in TypeScript projects. It analyzes the codebase to find exports that are not being imported anywhere, which can help in cleaning up the code and reducing the bundle size.

What are ts-prune's main functionalities?

Identify Unused Exports

This command scans the TypeScript project and lists all the exports that are not being used anywhere in the codebase. It helps developers identify dead code that can be safely removed.

npx ts-prune

Custom Configuration

You can customize the behavior of ts-prune by providing a configuration file. This example shows how to specify entry points and exclude certain files from the analysis.

{
  "entryPoints": ["src/index.ts"],
  "exclude": ["**/*.test.ts"]
}

Other packages similar to ts-prune

FAQs

Package last updated on 12 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc