UNPKG

thorish

Version:

This is a library of useful JS concepts and data structures for Node and the browser. It it, unashamedly, a dumping ground for code needed by [@samthor](https://twitter.com/samthor)'s projects.

56 lines 1.84 kB
{ "version": "1.1.84", "devDependencies": { "@types/ws": "^8.5.13", "esbuild": "^0.23.0", "tsx": "^4.16.5", "typescript": "^5.8.2", "vite": "^6.2.6" }, "type": "module", "sideEffects": false, "types": "dist/types/index.d.ts", "main": "dist/index-node.esm.js", "exports": { ".": { "import": { "node": "./dist/node.esm.js", "browser": "./dist/browser/entrypoint.js" }, "types": "./dist/types/index.d.ts" }, "./dom": { "browser": "./dist/browser/src/dom/index.js", "types": "./dist/types/src/dom/index.d.ts" } }, "imports": { "#support": { "node": "./src/support/node.ts", "browser": "./src/support/browser.ts" } }, "name": "thorish", "description": "This is a library of useful JS concepts and data structures for Node and the browser. It it, unashamedly, a dumping ground for code needed by [@samthor](https://twitter.com/samthor)'s projects.", "directories": { "test": "test" }, "keywords": [ "js", "datastructures", "queue" ], "author": "Sam Thorogood <sam.thorogood@gmail.com>", "license": "Apache-2.0", "dependencies": { "@types/node": "^24.10.1" }, "scripts": { "test": "node --disable-warning=ExperimentalWarning --experimental-transform-types --test test.ts", "build:dist-node": "esbuild entrypoint.ts --format=esm --platform=node --outfile=dist/node.esm.js --bundle --sourcemap", "build:dist-browser": "esbuild entrypoint.ts src/dom/index.ts --splitting --format=esm --platform=browser --outdir=dist/browser --bundle --sourcemap", "build:types": "tsc -p tsconfig.types.json", "build:test": "./build-test.sh", "build": "rm -rf dist; pnpm run build:dist-node && pnpm run build:dist-browser && pnpm run build:types && pnpm run build:test" } }