@alessiofrittoli/web-utils
Version:
Common TypeScript web utilities
131 lines • 4.58 kB
JSON
{
"name": "@alessiofrittoli/web-utils",
"version": "2.3.0",
"description": "Common TypeScript web utilities",
"author": {
"name": "Alessio Frittoli",
"email": "info@alessiofrittoli.it",
"url": "https://alessiofrittoli.it"
},
"license": "MIT",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/alessiofrittoli"
}
],
"keywords": [
"web-utilities",
"typed-map",
"map",
"string-utilities",
"web-storage-api",
"browser-api-utilities"
],
"homepage": "https://github.com/alessiofrittoli/web-utils#readme",
"bugs": {
"url": "https://github.com/alessiofrittoli/web-utils/issues",
"email": "info@alessiofrittoli.it"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alessiofrittoli/web-utils.git"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./*": {
"import": {
"types": "./dist/*/index.d.mts",
"default": "./dist/*/index.mjs"
},
"require": {
"types": "./dist/*/index.d.ts",
"default": "./dist/*/index.js"
}
}
},
"sideEffects": false,
"scripts": {
"//1a": "*********************************************************************",
"//1b": "******************** DEV - BUILD - LINT - RELEASE *******************",
"//1c": "*********************************************************************",
"dev": "cross-env NODE_ENV=development tsup --watch",
"build:prod": "cross-env NODE_ENV=production tsup",
"build": "pnpm lint && pnpm test:ci && pnpm build:prod",
"lint": "eslint",
"release": "node scripts/release.js --verbose --npm",
"//2a": "*********************************************************************",
"//2b": "***************************** UNIT TESTS ****************************",
"//2c": "*********************************************************************",
"test": "jest --verbose",
"test:watch": "jest --watchAll --verbose",
"test:ci": "jest --ci --verbose",
"//3a": "*********************************************************************",
"//3b": "************************ UNIT TESTS COVERAGE ************************",
"//3c": "*********************************************************************",
"test:coverage": "pnpm test:watch --coverage",
"test:coverage:ci": "pnpm test:ci --coverage",
"test:serve-coverage": "http-server ./coverage/lcov-report --gzip true -p 0 -o --silent",
"test:coverage:serve": "concurrently --prefix none --kill-others \"pnpm test:coverage\" \"pnpm test:serve-coverage\"",
"//4a": "*********************************************************************",
"//4b": "************************ TARGETED UNIT TESTS ************************",
"//4c": "*********************************************************************",
"test:map": "pnpm test:watch map.test.ts",
"test:blob": "pnpm test:watch blob.test.ts",
"test:dom": "pnpm test:watch __tests__/dom.test.ts",
"test:generators": "pnpm test:watch generators.test.ts",
"test:regex": "pnpm test:watch regex.test.ts",
"test:strings": "pnpm test:watch strings.test.ts",
"test:types": "pnpm test:watch types.test.ts",
"test:validation": "pnpm test:watch validation.test.ts",
"test:cookie": "pnpm test:watch storage/cookie.test.ts storage/cookie.jsdom.test.ts",
"test:local": "pnpm test:watch storage/local.test.ts",
"test:session": "pnpm test:watch storage/session.test.ts",
"test:browser-api": "pnpm test:watch browser-api/*",
"test:device": "pnpm test:watch device/*",
"test:promises": "pnpm test:watch promises.test.ts"
},
"devDependencies": {
"@alessiofrittoli/node-scripts": "^3.3.0",
"@eslint/js": "^10.0.1",
"@jest/globals": "^30.2.0",
"@types/jest": "^30.0.0",
"@types/node": "^25.4.0",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"dotenv": "^17.3.1",
"eslint": "^10.0.3",
"globals": "^17.4.0",
"http-server": "^14.1.1",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"ts-jest": "^29.4.6",
"ts-node": "^10.9.2",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.0"
},
"dependencies": {
"@alessiofrittoli/date-utils": "^4.1.0",
"@alessiofrittoli/exception": "^3.5.0",
"@alessiofrittoli/fetcher": "^1.1.0",
"@alessiofrittoli/math-utils": "^2.0.0",
"@alessiofrittoli/type-utils": "^1.9.0",
"@alessiofrittoli/url-utils": "^4.0.0"
}
}