{ "name": "@nevware21/ts-utils", "description": "Comprehensive TypeScript/JavaScript utility library with cross-environment support (Node.js, browser, web worker) providing helper functions, polyfills (ES5-ES2023), type checking utilities, and optimized implementations for better minification and code readability", "version": "0.16.0", "homepage": "https://github.com/nevware21/ts-utils", "license": "MIT", "author": { "name": "Nevware21 Solutions LLC", "email": "github@nevware21.com" }, "keywords": [ "ts", "typescript", "js", "javascript", "minification", "minify", "utils", "helper", "node", "browser", "worker", "webworker", "polyfill", "ES5", "ES6", "ES7", "ES2015", "ES2016", "ES2017", "ES2018", "ES2019", "ES2020", "ECMAScript 5", "ECMAScript 6", "ECMAScript 7", "ECMAScript 2015", "ECMAScript 2016", "ECMAScript 2017", "ECMAScript 2018", "ECMAScript 2019", "ECMAScript 2020", "ECMAScript 2021", "ECMAScript 2022", "ECMAScript 2023", "getDocument", "getGlobal", "getHistory", "getInst", "getNavigator", "getWindow", "hasDocument", "hasHistory", "hasNavigator", "hasWindow", "isNode", "isWebWorker", "isArray", "isArrayBuffer", "isBlob", "isBoolean", "isDate", "isError", "isFile", "isFormData", "isFunction", "isIterable", "isIterator", "isNullOrUndefined", "isNumber", "isObject", "isPromise", "isPromiseLike", "isThenable", "isRegExp", "isStrictNullOrUndefined", "isStrictUndefined", "isString", "isTypeof", "isUndefined", "hasValue", "isDefined", "isNotTruthy", "isTruthy", "string left", "strLeft", "string right", "strRight", "normalize js name", "letter case", "lettercase", "camel case", "camelcase", "kebab case", "kebabcase", "snake case", "snakecase", "uppercase", "lowercase", "custom error", "asString", "hasOwn", "defineProperty", "timeout", "idle timer", "timer", "interval", "microtask", "queueMicrotask", "nextTick", "process-nexttick", "cancellable microtask", "function-bind", "includes", "string contains", "html encode", "deep-copy", "deep-clone", "throttle", "debounce", "memoize", "utility-functions", "cross-platform", "environment-detection", "tree-shaking", "bundle-size-optimization", "esm", "commonjs", "umd", "type-guards", "object-manipulation", "array-utilities", "string-manipulation", "promise-utilities", "async-utilities", "zero-dependency", "universal", "isomorphic", "cross-runtime", "environment-agnostic", "lodash-alternative", "underscore-alternative", "ramda-alternative", "starts-with", "ends-with", "string-padding", "string-trim", "string-repeat", "array-map", "array-reduce", "array-filter", "array-find", "array-concat", "object-copy", "object-keys", "lightweight", "performance-optimized", "type-safe", "prototype-pollution", "prototype-pollution-prevention", "secure-merge", "secure-copy", "object-security", "defensive-programming", "forEachOwnKeySafe", "isUnsafePropKey", "isUnsafeTarget", "arrKeys", "arrIndexKeys", "sparse-array", "array-like", "from-entries", "has-own", "base64" ], "main": "lib/dist/es5/main/ts-utils.js", "esnext:main": "lib/dist/es6/main/ts-utils.js", "module": "lib/dist/es5/mod/ts-utils.js", "esnext:module": "lib/dist/es6/mod/ts-utils.js", "types": "lib/dist/types/ts-utils.d.ts", "sideEffects": [ "./lib/bundle/es5/ts-polyfills-utils.js", "./lib/bundle/es5/ts-polyfills-utils.min.js" ], "scripts": { "build": "grunt ts_utils --verbose && npm run package && npm run dtsgen", "rebuild": "npm run build && npm run test && npm run size && npm run size-check && npm run bundle-check", "package": "rollup -c lib/rollup.config.js --bundleConfigAsCjs", "test": "npm run test:es5 && npm run test:esnext && npm run coverage:report", "test:es5": "npm run test:node && npm run test:browser && npm run test:worker", "test:esnext": "npm run test:node_esnext && npm run test:browser_esnext && npm run test:worker_esnext", "test:node": "nyc ts-mocha -p lib/test/tsconfig.test.json lib/test/src/node/**/*.test.ts lib/test/src/common/**/*.test.ts", "test:node_esnext": "nyc --report-dir=./coverage/nyc_esnext ts-mocha -p lib/test/tsconfig.test.esnext.json lib/test/src/esnext/**/*.test.ts lib/test/src/node/**/*.test.ts lib/test/src/common/**/*.test.ts", "test:browser": "karma start karma.browser.conf.js --single-run", "test:browser_esnext": "karma start karma.browser.esnext.conf.js --single-run", "test:worker": "karma start karma.worker.conf.js --single-run", "test:worker_esnext": "karma start karma.worker.esnext.conf.js --single-run", "debug:browser": "karma start karma.debug.browser.conf.js --watch", "debug:worker": "karma start karma.debug.worker.conf.js --watch", "debug:browser_esnext": "karma start karma.debug.browser.esnext.conf.js --watch", "debug:worker_esnext": "karma start karma.debug.worker.esnext.conf.js --watch", "lint": "grunt ts_utils-lint", "coverage:report": "npm run coverage:nyc && npm run coverage:nyc_esnext && npm run coverage:merge", "coverage:nyc": "nyc report --reporter=json", "coverage:nyc_esnext": "nyc --report-dir=./coverage/nyc_esnext report --reporter=json", "coverage:merge": "merge-coverage", "codecov": "npm run coverage:merge", "clean": "git clean -xdf && npm install", "cleanBuild": "npm run clean && npm run rebuild", "docs": "typedoc --plugin typedoc-github-theme", "prep-release": "npm run cleanBuild && npm run npm-pack", "npm-pack": "copyfiles README.md LICENSE lib && cd lib && npm pack", "npm-publish": "publish-npm", "dtsgen": "api-extractor run --local --verbose && node lib/scripts/setTsReferences.js", "size": "size-limit", "size-save": "size-limit --clean-dir --save-bundle build/size", "size-check": "node lib/test/bundle-size-check.js && node lib/test/bundle-pure-annotations-check.js && node lib/test/no-side-effects-annotations-check.js", "bundle-check": "node lib/test/bundle-runtime-check.js", "ts-versions-check": "node lib/test/typescript-versions-check.js", "link-check": "node lib/test/readme-links-check.js", "readme-link-check": "npm run docs && npm run link-check" }, "repository": { "type": "git", "url": "https://github.com/nevware21/ts-utils.git" }, "bugs": { "url": "https://github.com/nevware21/ts-utils/issues" }, "funding": [ { "type": "github", "url": "https://github.com/sponsors/nevware21" }, { "type": "other", "url": "https://buymeacoffee.com/nevware21" } ], "licenses": [ { "type": "MIT", "url": "https://github.com/nevware21/ts-utils/blob/main/LICENSE" } ], "engines": { "node": ">= 0.8.0" }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "^1.0.2", "@microsoft/api-extractor": "^7.57.7", "@nevware21/coverage-tools": ">= 0.1.5 < 2.x", "@nevware21/grunt-eslint-ts": "^0.5.1", "@nevware21/grunt-ts-plugin": "^0.5.1", "@nevware21/publish-npm": ">= 0.1.5 < 2.x", "@nevware21/tripwire-chai": ">= 0.1.8 < 2.x", "@rollup/plugin-commonjs": "^29.0.0", "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-strip": "^3.0.2", "@rollup/plugin-typescript": "^12.1.0", "@size-limit/esbuild-why": "^13.0.1", "@size-limit/preset-small-lib": "^13.0.1", "@size-limit/time": "^13.0.1", "@types/eslint": "^8.56.10", "@types/estree": "^1.0.0", "@types/mocha": "^10.0.1", "@types/node": "^26.0.1", "@types/sinon": "^22.0.0", "@typescript-eslint/eslint-plugin": "^7.14.1", "@typescript-eslint/parser": "^7.14.1", "chromium": "^3.0.3", "codecov": "^3.8.3", "copyfiles": "^2.4.1", "cross-env": "^10.1.0", "esbuild": "^0.28.1", "eslint": "^8.56.0", "eslint-formatter-codeframe": "^7.32.1", "eslint-plugin-security": "^1.5.0", "glob": "13.0.7", "grunt": "^1.6.2", "grunt-cli": "^1.4.3", "karma": "^6.4.3", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", "karma-spec-reporter": "^0.0.37", "karma-typescript": "^5.5.4", "magic-string": "^1.0.0", "mocha": "^11.2.0", "nyc": "^18.0.0", "puppeteer": "^25.0.2", "rollup": "^4.14.1", "rollup-plugin-cleanup": "^3.2.1", "rollup-plugin-istanbul": "^6.0.0", "rollup-plugin-minify-es": "^1.1.1", "rollup-plugin-sourcemaps": "^0.6.3", "sinon": "^15.0.0", "size-limit": "^13.0.1", "ts-mocha": "^11.1.0", "tslib": "^2.6.0", "typedoc": "^0.28.18", "typedoc-github-theme": "^0.4.0", "typescript": "~5.2.2", "uglify-js": "^3.15.5" }, "overrides": { "@sinonjs/samsam": "7.0.1", "@sinonjs/fake-timers": "10.0.2" } }