UNPKG

xuxi

Version:

Dynamically utility for combining different types of values ​​into a single value.

144 lines (143 loc) 4.77 kB
{ "name": "xuxi", "version": "1.0.2", "author": "Ilham Khoeri <ilkhoeri@gmail.com> (https://github.com/ilkhoeri)", "repository": { "type": "git", "url": "git+https://github.com/ilkhoeri/xuxi.git" }, "main": "./lib/index.js", "module": "./lib/index.mjs", "devDependencies": { "@babel/core": "^7.26.0", "@babel/preset-env": "^7.26.0", "@babel/preset-typescript": "^7.26.0", "@jest/globals": "^29.7.0", "@rollup/plugin-typescript": "^12.1.2", "@swc/core": "^1.10.11", "@swc/jest": "^0.2.37", "@types/jest": "^29.5.14", "@types/node": "^22.10.7", "@typescript-eslint/eslint-plugin": "^8.21.0", "@typescript-eslint/parser": "^8.21.0", "babel-jest": "^29.7.0", "chalk": "^5.4.1", "dependency-cruiser": "^16.9.0", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-ban": "^2.0.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-unused-imports": "^4.1.4", "husky": "^9.1.7", "jest": "^29.7.0", "nodemon": "^3.1.9", "ora": "^8.1.1", "prettier": "^3.3.3", "rollup": "^4.31.0", "ts-jest": "^29.2.5", "tslib": "^2.8.1", "tsx": "^4.19.2", "typescript": "^5.7.3", "vitest": "^3.0.4" }, "exports": { ".": { "types": "./index.d.ts", "require": "./lib/index.js", "import": "./lib/index.mjs" }, "./package.json": "./package.json" }, "bugs": { "url": "https://github.com/ilkhoeri/xuxi/issues" }, "description": "Dynamically utility for combining different types of values ​​into a single value.", "files": [ "/lib", "/index.d.ts" ], "funding": [ { "type": "sponsors", "url": "https://github.com/sponsors/ilkhoeri" }, { "type": "opencollective", "url": "https://opencollective.com/oeri" }, { "type": "individual", "url": "https://saweria.co/ilkhoeri" } ], "homepage": "https://ilkhoeri.github.io/xuxi", "keywords": [ "data-combination", "object-variant", "class-variant", "variant", "classes", "string-merging", "string", "mergedeep", "merged", "variants", "dynamic", "converter" ], "license": "MIT", "lint-staged": { "src/*.ts": [ "eslint --cache --fix", "prettier --ignore-unknown --write" ], "*.md": [ "prettier --ignore-unknown --write" ] }, "scripts": { "prettier:fix": "prettier --write src deno *.md --ignore-unknown --no-error-on-unmatched-pattern", "prettier:check": "prettier --check src deno *.md --no-error-on-unmatched-pattern", "prettier": "yarn prettier:fix && yarn prettier:check", "lint:check": "eslint --cache src", "lint:fix": "eslint --cache --fix src", "check": "yarn lint:check && yarn prettier:check", "fix": "yarn lint:fix && yarn prettier:fix", "clean": "rm -rf lib/* deno/lib/*", "build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:deno && yarn prettier && yarn minify", "build:deno": "tsx ./script/info.ts deno && node ./configs/deno-build.mjs && cp ./README.md ./deno/lib", "build:esm": "tsx ./script/info.ts esm && rollup --config ./configs/rollup.config.mjs --compact", "build:cjs": "tsx ./script/info.ts cjs && tsc -p ./configs/tsconfig.cjs.json", "build:types": "tsc -p ./configs/tsconfig.types.json", "build:test": "tsc -p ./configs/tsconfig.test.json", "test:watch": "yarn test:ts-jest --watch", "test": "yarn test:ts-jest", "test:all": "yarn test:babel && yarn test:jest && yarn test:ts-jest && yarn test:swc && yarn test:bun && yarn test:vitest && yarn test:deno", "test:babel": "jest --coverage --config ./configs/babel-jest.config.json", "test:bun": "bun test __tests__/", "test:vitest": "npx vitest --config ./configs/vitest.config.ts", "test:ts-jest": "npx jest --config ./configs/ts-jest.config.json", "test:jest": "jest --coverage", "test:swc": "npx jest --config ./configs/swc-jest.config.json", "test:deno": "cd deno && deno test", "test:deno:test": "deno test ./deno/_tests", "prepare:test": "husky .husky/pre-publish \"yarn test\"", "prepare": "husky", "prepublishOnly": "npm run test && npm run build && npm run build:deno", "jsr:publish": "yarn prettier && cd deno/lib && npx jsr publish", "lint": "eslint src --cache", "format": "prettier src", "typecheck": "tsc --noEmit", "play": "nodemon -e ts -w . -x tsx playground.ts", "depcruise": "depcruise -c .dependency-cruiser.js src", "minify": "tsx ./script/minify.ts" }, "sideEffects": false, "support": { "backing": { "npm-funding": true } }, "types": "./index.d.ts" }