+
Skip to content

Pistonite/pure

Repository files navigation

pure

Pure TypeScript utility libraries for my projects

Documentation

https://pure.pistonite.dev

Setup

Install the package from NPM

npm install @pistonite/pure

For React hooks

npm install @pistonite/pure-react

Import the things you need

import type { Result } from "@pistonite/pure/result";

Bundling

Because this library has global states, it's likely you need to dedupe it in your bundler config

For example, Vite:

export default defineConfig({
    /* ... */

    resolve: {
        dedupe: ["@pistonite/pure"]
    }

    /* ... */
})

About

Pure TypeScript utility library for browsers

Resources

License

Stars

Watchers

Forks

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载