UNPKG

fuzzy-regex

Version:

A regular expression library for Node.js that allows for a configurable number of mismatches (fuzzy matching), powered by the high-performance [TRE](https://laurikari.net/tre/) regex engine. This package supports both ESM and CommonJS, and provides a simp

78 lines (77 loc) 1.9 kB
{ "name": "fuzzy-regex", "version": "2.0.21", "type": "module", "gypfile": true, "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "engines": { "node": ">=18.0.0" }, "keywords": [ "fuzzy", "regex", "search", "matching", "pattern", "string", "substring", "fuzzy-search", "fuzzy-match", "fuzzy-regex", "fuzzy-regex-search", "fuzzy-regex-match", "fuzzy-regex-search-match", "ocr", "optical-character-recognition", "ocr-regex", "ocr-regex-search", "ocr-regex-match", "ocr-regex-search-match" ], "repository": { "type": "git", "url": "git+https://github.com/quantifica/fuzzy-regex.git" }, "author": "Quantifica", "license": "MIT", "homepage": "https://github.com/quantifica/fuzzy-regex", "bugs": { "url": "https://github.com/quantifica/fuzzy-regex/issues" }, "os": [ "linux", "darwin" ], "dependencies": { "node-addon-api": "^8.4.0" }, "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "^22.13.10", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "tsup": "^8.5.0", "typescript": "^5.8.3" }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "4.43.0" }, "files": [ "LICENSE", "README.md", "bindings", "binding.gyp", "dist", "vendor" ], "scripts": { "build": "tsup", "preinstall": "ls ./vendor/tre/lib/.libs/regexec.o || (cd ./vendor/tre && ./utils/autogen.sh && ./configure && make)", "postinstall": "(ls ./build/Release/tre.node || node-gyp rebuild) && (cp ./build/Release/tre.node ./dist/tre.node || true)", "prepublishOnly": "npm run preinstall && npm run postinstall && npm run build", "test": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --config jest.config.ts" } }