string-trim-spaces-only
Version:
Like String.trim() but you can choose granularly what to trim
81 lines (80 loc) • 2.33 kB
JSON
{
"name": "string-trim-spaces-only",
"version": "5.2.1",
"description": "Like String.trim() but you can choose granularly what to trim",
"keywords": [
"characters",
"end",
"front",
"just",
"only",
"space",
"spaces",
"string",
"text",
"trim"
],
"homepage": "https://codsen.com/os/string-trim-spaces-only",
"repository": {
"type": "git",
"url": "git+https://github.com/codsen/codsen.git",
"directory": "packages/string-trim-spaces-only"
},
"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-trim-spaces-only.umd.js",
"default": "./dist/string-trim-spaces-only.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,
"branches": 100,
"check-coverage": true,
"exclude": ["**/test/**/*.*"],
"functions": 100,
"include": ["dist/*.esm.js"],
"lines": 100,
"statements": 100
},
"lect": {
"licence": {
"extras": [""]
}
},
"dependencies": {
"codsen-utils": "^1.9.0"
},
"engines": {
"node": ">=18.20.8"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}