UNPKG

fast-escape-regexp

Version:

Fastest, plain JavaScript-based, regexp escaping library for JavaScript, works in both Node.js and browser.

65 lines 2.01 kB
{ "name": "fast-escape-regexp", "version": "1.0.1", "description": "Fastest, plain JavaScript-based, regexp escaping library for JavaScript, works in both Node.js and browser.", "repository": { "url": "https://github.com/SukkaW/fast-escape-regexp" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist" ], "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js", "default": "./dist/index.js" } }, "keywords": [ "escape", "escape-regexp", "utility", "escape-goat", "regex", "regexp" ], "author": "SukkaW <https://skk.moe>", "license": "MIT", "devDependencies": { "@eslint-sukka/node": "^6.23.1", "@istanbuljs/nyc-config-typescript": "^1.0.2", "@mitata/counters": "^0.0.8", "@swc-node/register": "^1.10.10", "@types/escape-regexp": "^0.0.3", "@types/lodash.escaperegexp": "^4.1.9", "@types/mocha": "^10.0.10", "@types/regex-escape": "^3.4.1", "bumpp": "^10.2.3", "bunchee": "^6.6.0", "escape-regexp": "^0.0.1", "escape-string-regexp": "^5.0.0", "eslint": "^9.33.0", "eslint-config-sukka": "^6.23.1", "eslint-formatter-sukka": "^6.23.1", "expect": "^30.0.5", "hexo-util": "^3.3.0", "lodash.escaperegexp": "^4.1.2", "mitata": "^1.0.34", "mocha": "^11.7.1", "nyc": "^17.1.0", "regex-escape": "^3.4.11", "typescript": "latest" }, "scripts": { "lint": "eslint --format=sukka .", "test": "SWC_NODE_IGNORE_DYNAMIC=1 SWC_NODE_PROJECT=tsconfig.test-swc.json nyc mocha --require @swc-node/register --full-trace ./src/**/*.test.ts", "bench": "SWC_NODE_IGNORE_DYNAMIC=1 node --require @swc-node/register benchmark/index.ts", "build": "bunchee --no-sourcemap", "prerelease": "pnpm run lint && pnpm run test && pnpm run build", "release": "bumpp -r --all --commit \"release: %s\" --tag \"%s\"" } }