string-left-right
Version:
Looks up the first non-whitespace character to the left/right of a given index
81 lines (80 loc) • 2.28 kB
JSON
{
"name": "string-left-right",
"version": "6.2.0",
"description": "Looks up the first non-whitespace character to the left/right of a given index",
"keywords": [
"check",
"left",
"look",
"lookup",
"loop",
"right",
"see",
"string",
"text",
"the",
"to",
"traversal",
"traverse"
],
"homepage": "https://codsen.com/os/string-left-right",
"repository": {
"type": "git",
"url": "git+https://github.com/codsen/codsen.git",
"directory": "packages/string-left-right"
},
"license": "MIT",
"author": {
"name": "Roy Revelt",
"email": "roy@codsen.com",
"url": "https://codsen.com"
},
"type": "module",
"exports": {
"types": "./types/index.d.ts",
"script": "./dist/string-left-right.umd.js",
"default": "./dist/string-left-right.esm.js"
},
"types": "types/index.d.ts",
"scripts": {
"build": "node ../../ops/scripts/esbuild.js && npm run dts",
"coverage": "c8 uvu test",
"dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
"devtest": "c8 npm run unit && npm run examples && npm run lint",
"dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
"examples": "node '../../ops/scripts/run-examples.js'",
"lect": "node '../../ops/lect/lect.js'",
"lect:check": "node '../../ops/lect/lect.js' --check",
"lint": "biome lint --error-on-warnings . && npm run typecheck",
"lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
"perf": "node perf/check.js",
"prep": "echo 'ready'",
"prettier": "biome format",
"prettier:format": "biome format --write .",
"pretest": "npm run lect:check && npm run build",
"test": "npm run devtest",
"typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
"unit": "uvu test"
},
"c8": {
"all": true,
"check-coverage": true,
"exclude": ["**/test/**/*.*"],
"include": ["dist/*.esm.js"],
"lines": 100
},
"lect": {
"licence": {
"extras": [""]
}
},
"dependencies": {
"codsen-utils": "^1.8.0"
},
"engines": {
"node": ">=18.20.8"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}