UNPKG

@kamilmielnik/trie

Version:

Trie data structure implementation in TypeScript. Highly performant. No dependencies. Built for a Scrabble Solver.

83 lines (82 loc) 2.27 kB
{ "name": "@kamilmielnik/trie", "version": "5.0.0", "description": "Trie data structure implementation in TypeScript. Highly performant. No dependencies. Built for a Scrabble Solver.", "keywords": [ "trie", "data", "structure", "algorithm", "scrabble", "solver", "typescript", "prefix", "tree" ], "engines": { "bun": ">=1.3", "node": ">=22" }, "type": "module", "main": "./build/cjs/index.js", "module": "./build/esm/index.js", "types": "./build/esm/index.d.ts", "exports": { ".": { "types": "./build/esm/index.d.ts", "import": "./build/esm/index.js", "require": "./build/cjs/index.js" } }, "license": "MIT", "author": { "name": "Kamil Mielnik", "email": "kamil@kamilmielnik.com", "url": "https://kamilmielnik.com/" }, "repository": { "type": "git", "url": "git+https://github.com/kamilmielnik/trie.git" }, "bugs": { "url": "https://github.com/kamilmielnik/trie/issues" }, "homepage": "https://github.com/kamilmielnik/trie#readme", "files": [ "build/**" ], "np": { "yarn": false }, "publishConfig": { "access": "public" }, "scripts": { "bench": "bun run bench/index.ts", "build": "tsgo --project . && tsgo --project tsconfig.cjs.json && bun run build:markers", "build:docs": "typedoc", "build:markers": "echo '{\"type\":\"module\"}' > build/esm/package.json && echo '{\"type\":\"commonjs\"}' > build/cjs/package.json", "clean": "rimraf build coverage docs", "postbuild": "bun run build:docs", "prebuild": "bun run clean", "prerelease": "bun run test && bun run build && bun run build:docs", "format": "oxfmt --check './src/**/*.{js,ts}'", "format:fix": "oxfmt --write './src/**/*.{js,ts}'", "release": "np", "test": "bun test --coverage", "test:debug": "bun --inspect-brk test", "test:watch": "bun test --watch" }, "devDependencies": { "7zip-bin": "^5.2.0", "@types/bun": "^1.3.13", "@typescript/native-preview": "^7.0.0-dev.20260430.1", "np": "^11.2.0", "oxfmt": "^0.47.0", "rimraf": "^6.1.3", "tinybench": "^6.0.1", "typedoc": "^0.28.19", "typedoc-plugin-markdown": "^4.11.0", "typescript": "^6.0.3" } }