UNPKG

@syntropiq/libpcre-ts

Version:

WebAssembly wrapper for the original PCRE library with TypeScript bindings. More permissive than modern regex engines.

72 lines (71 loc) 1.93 kB
{ "type": "module", "name": "@syntropiq/libpcre-ts", "version": "1.3.1", "description": "WebAssembly wrapper for the original PCRE library with TypeScript bindings. More permissive than modern regex engines.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/libpcre.d.ts", "exports": { ".": { "types": "./dist/libpcre.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" } }, "scripts": { "build:esm": "tsc -p tsconfig.esm.json", "build:cjs": "tsc -p tsconfig.cjs.json", "build": "./scripts/build.sh", "build:wasm": "mkdir -p build && cd build && emcmake cmake .. && emmake make -j$(nproc)", "build:types": "node scripts/generate-types.js", "clean": "rm -rf build dist", "test": "vitest run --bail=1", "test:continue": "vitest run", "test:watch": "vitest", "test:performance": "vitest run test/performance.test.js --reporter=verbose", "test:legacy": "node test/test.js", "init:submodules": "./scripts/init-submodules.sh", "preflight": "./scripts/preflight.sh", "build:vite": "vite build" }, "keywords": [ "pcre", "regex", "webassembly", "wasm", "typescript", "pattern", "matching", "legacy", "compatibility", "lookbehind", "recursion", "named-groups" ], "author": "Syntropiq", "license": "BSD-3-Clause", "devDependencies": { "@types/emscripten": "latest", "@vitest/ui": "latest", "typescript": "latest", "vite": "^6.3.5", "vitest": "latest" }, "files": [ "dist/", "README.md", "LICENSE" ], "repository": { "type": "git", "url": "git+https://github.com/syntropiq/libpcre-ts.git" }, "bugs": { "url": "https://github.com/syntropiq/libpcre-ts/issues" }, "homepage": "https://github.com/syntropiq/libpcre-ts#readme", "engines": { "node": ">=16.0.0" } }