UNPKG

namespace-lookup

Version:

Find the longest namespace that a string starts with

39 lines (38 loc) 1.09 kB
{ "name": "namespace-lookup", "version": "0.3.0", "description": "Find the longest namespace that a string starts with", "keywords": [ "trie", "radix-tree" ], "author": "Jakob Voß", "license": "MIT", "homepage": "https://github.com/gbv/namespace-lookup#readme", "repository": { "type": "git", "url": "https://github.com/gbv/namespace-lookup.git" }, "type": "module", "main": "index.js", "files": [ "index.js" ], "scripts": { "test": "mocha", "coverage": "c8 mocha", "lint": "eslint *.js test/", "fix": "eslint *.js test/ --fix", "release": "git checkout dev && git pull && npm test && npm version $SEMVER && git push && git checkout main && git merge dev && git push --follow-tags && git checkout dev", "release:patch": "SEMVER=patch npm run release", "release:minor": "SEMVER=minor npm run release", "release:major": "SEMVER=major npm run release" }, "devDependencies": { "c8": "^10.1.3", "chai": "^5.2.0", "eslint": "^9.23.0", "eslint-config-gbv": "^2.6.0", "mocha": "^11.1.0" } }