Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pure-index

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-index

Utility for monorepos. It helps to clean your packages of unused exports with ease

  • 0.0.55
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by122.22%
Maintainers
1
Weekly downloads
 
Created
Source

🌿 Pure Index

Pure Index is utility for packages. It helps to clean your packages of unused exports with ease.
And it's also very fast ⚡️

Motivation

We will use the @my/ui-kit package as an example.

export { Button } from './components/button';
export { Text } from './components/text';

export { ThemeProvider, useTheme, type Theme } from './themes';
...

All of its exportable code requires support. But is all of it actually being used?

You can check this manually by just looping through the exports. It's time consuming and there is a chance of error. What if it's code is used by multiple repositories?

Let's automate this process!

Installation

You can use any package manager

npm install -D pure-index

Quick Start

Pure Index can be used either through a command line interface with an optional configuration file, or else through its JavaScript API.

  1. Add the check-exports script in the package.json of each package that needs to be checked
    "scripts": {
+     "check-exports": "pure-index"
    }
  1. Run
npm run check-exports
  1. Depending on the project, you may need to configure Pure Index.

Documentation

For additional information, guides and api reference visit our documentation site

Keywords

FAQs

Package last updated on 05 Jan 2024

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