You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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 - npm Package Compare versions

Comparing version

to
1.0.0-next.0

7

package.json
{
"name": "pure-index",
"type": "module",
"version": "0.0.57",
"version": "1.0.0-next.0",
"description": "Utility for monorepos. It helps to clean your packages of unused exports with ease",

@@ -14,4 +14,5 @@ "main": "./dist/api/index.js",

"scripts": {
"build": "rm -rf ./dist && tsc --project ./tsconfig.build.json && tsc-alias",
"prepublishOnly": "npm t && npm run build",
"build": "make build",
"prepublishOnly": "make prepublishOnly",
"prettier:check": "make prettierCheck",
"test": "vitest"

@@ -18,0 +19,0 @@ },

# 🌿 Pure Index
Pure Index is utility for packages. It helps to clean your packages of unused exports with ease.<br />And it's also very fast ⚡️
Pure Index is a tool for packages. It helps to clean your packages of unused exports with ease.<br />
And it’s also speedy ⚡️

@@ -9,3 +10,3 @@ ## Motivation

```ts title="ui-kit/index.ts"
```ts title="ui-kit/src/index.ts"
export { Button } from './components/button';

@@ -18,5 +19,5 @@ export { Text } from './components/text';

All of its exportable code requires support. But is all of it actually being used?
The number of exports increases over time. All of its exportable code requires support. But is all of it 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?
You can check this manually by just looping through the exports. It’s time-consuming, and there is a chance of error. What if multiple repositories use its code?

@@ -35,5 +36,5 @@ Let's automate this process!

Pure Index can be used either through a [command line interface](https://space307.github.io/pure-index/intro/cli) with an optional [configuration file](https://space307.github.io/pure-index/reference/configuration), or else through its [JavaScript API](https://space307.github.io/pure-index/intro/js-api).
Pure Index can be used either through a [command line interface](https://space307.github.io/pure-index/intro/cli) with an optional [configuration file](https://space307.github.io/pure-index/reference/configuration) or its [JavaScript API](https://space307.github.io/pure-index/intro/js-api).
1. Add the `check-exports` script in the `package.json` of each package that needs to be checked
1. Add the `check-exports` script in the `package.json` of packages that require checking.

@@ -56,2 +57,2 @@ ```diff

For additional information, guides and api reference visit [our documentation site](https://space307.github.io/pure-index)
Visit [our documentation site](https://space307.github.io/pure-index) for additional information, guides, and API references..