1.1.0 • Published 2 months ago

pure-index v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

🌿 Pure Index

Pure Index is a tool for packages. It helps to clean your packages of unused exports with ease. And it’s also speedy ⚡️

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';
...

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 multiple repositories use its code?

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 its JavaScript API.

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

Documentation

Visit our documentation site for additional information, guides, and API references..

1.1.0

2 months ago

1.1.0-next.2

2 months ago

1.1.0-next.1

2 months ago

1.1.0-next.0

2 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.5-next.0

3 months ago

1.0.3

3 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

1.0.0-next.4

4 months ago

1.0.0-next.3

4 months ago

1.0.0-next.0

4 months ago

1.0.0-next.1

4 months ago

1.0.0-next.2

4 months ago

0.0.55

4 months ago

0.0.56

4 months ago

0.0.57

4 months ago

0.0.52

4 months ago

0.0.53

4 months ago

0.0.54

4 months ago

0.0.43

4 months ago

0.0.44

4 months ago

0.0.45

4 months ago

0.0.46

4 months ago

0.0.47

4 months ago

0.0.51

4 months ago

0.0.50

4 months ago

0.0.48

4 months ago

0.0.49

4 months ago

0.0.41

4 months ago

0.0.42

4 months ago

0.0.40

4 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.22

4 months ago

0.0.23

4 months ago

0.0.24

4 months ago

0.0.25

4 months ago

0.0.37

4 months ago

0.0.15

4 months ago

0.0.38

4 months ago

0.0.39

4 months ago

0.0.17

4 months ago

0.0.18

4 months ago

0.0.19

4 months ago

0.0.30

4 months ago

0.0.31

4 months ago

0.0.32

4 months ago

0.0.33

4 months ago

0.0.34

4 months ago

0.0.16-0

4 months ago

0.0.12

4 months ago

0.0.35

4 months ago

0.0.13

4 months ago

0.0.36

4 months ago

0.0.14

4 months ago

0.0.26

4 months ago

0.0.27

4 months ago

0.0.28

4 months ago

0.0.29

4 months ago

0.0.11

4 months ago

0.0.10

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.7

4 months ago

0.0.6

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago