https://github.com/pistonite/pure
Pure TypeScript utility library for browsers
https://github.com/pistonite/pure
Last synced: about 1 month ago
JSON representation
Pure TypeScript utility library for browsers
- Host: GitHub
- URL: https://github.com/pistonite/pure
- Owner: Pistonite
- License: mit
- Created: 2024-02-28T03:44:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-26T07:25:52.000Z (6 months ago)
- Last Synced: 2024-11-26T08:27:55.867Z (6 months ago)
- Language: TypeScript
- Homepage: https://jsr.io/@pistonite/pure
- Size: 55.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pure
Pure TypeScript utility libraries for my projects
## Documentation
https://pure.pistonite.dev
## Setup
Install the package from NPM
```bash
npm install @pistonite/pure
```For React hooks
```bash
npm install @pistonite/pure-react
```Import the things you need
```typescript
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 configFor example, Vite:
```typescript
export default defineConfig({
/* ... */resolve: {
dedupe: ["@pistonite/pure"]
}/* ... */
})
```