UNPKG

regexp-clone

Version:

Zero dependency RegExp cloning with flag and lastIndex preservation.

50 lines 1.35 kB
{ "name": "regexp-clone", "version": "1.2.0", "description": "Zero dependency RegExp cloning with flag and lastIndex preservation.", "main": "index.js", "exports": { ".": "./index.js", "./package.json": "./package.json" }, "types": "index.d.ts", "sideEffects": false, "files": [ "index.js", "index.d.ts", "LICENSE", "README.md" ], "repository": { "type": "git", "url": "git://github.com/aheckmann/regexp-clone.git" }, "bugs": { "url": "https://github.com/aheckmann/regexp-clone/issues" }, "keywords": [ "RegExp", "clone" ], "author": "Aaron Heckmann <aaron.heckmann+github@gmail.com>", "license": "MIT", "devDependencies": { "@eslint/js": "^9.33.0", "@eslint/markdown": "^7.1.0", "eslint": "^9.33.0", "globals": "^16.3.0", "jiti": "^2.5.1", "prettier": "3.6.2", "typescript": "^5.9.2" }, "scripts": { "test": "node test/index.js", "build": "tsc", "fix": "pnpm run '/^(format|lint)$/'", "check": "pnpm run '/.*:check$/'", "format": "prettier --write --cache --cache-location .prettiercache .", "format:check": "prettier --check --cache --cache-location .prettiercache .", "lint": "eslint --fix --cache --cache-location .eslintcache .", "lint:check": "eslint --cache --cache-location .eslintcache ." } }