js-use-core
Version:
JavaScript Comprehensive tool library, including full screen, copy and paste functions
235 lines • 6.11 kB
JSON
{
"name": "js-use-core",
"version": "1.2.0",
"description": "JavaScript Comprehensive tool library, including full screen, copy and paste functions",
"keywords": [
"javascript",
"typescript",
"utility",
"fullscreen",
"clipboard",
"copy",
"paste",
"file",
"image",
"base64",
"blob",
"conversion",
"utility",
"dataURL",
"image-compression",
"image-conversion",
"file-conversion",
"font",
"font-loading",
"font-check",
"font-face",
"css-font-loading-api",
"web-fonts",
"font-management",
"url",
"url-parser",
"query-string",
"url-builder",
"url-validation",
"query-params",
"url-manipulation",
"device-detection",
"mobile-detection",
"browser-detection",
"os-detection",
"user-agent",
"responsive",
"touch-device",
"user-agent",
"ua-parser",
"browser-detection",
"version-comparison",
"semver",
"webview-detection",
"bot-detection",
"headless-detection",
"typescript",
"javascript"
],
"homepage": "https://github.com/chao921125/js-use-core",
"repository": {
"type": "git",
"url": "https://github.com/chao921125/js-use-core.git"
},
"bugs": {
"url": "https://github.com/chao921125/js-use-core/issues"
},
"author": {
"name": "chao921125",
"email": "chao921125@sina.com",
"url": "https://github.com/chao921125"
},
"license": "BSD-3-Clause",
"type": "module",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"unpkg": "dist/index.umd.js",
"jsdelivr": "dist/index.umd.js",
"browser": "dist/index.umd.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs.js",
"browser": "./dist/index.umd.js",
"default": "./dist/index.js"
},
"./core": {
"types": "./dist/core.d.ts",
"import": "./dist/core.js",
"require": "./dist/core.cjs.js"
},
"./clipboard": {
"types": "./dist/clipboard.d.ts",
"import": "./dist/clipboard.js",
"require": "./dist/clipboard.cjs.js"
},
"./device": {
"types": "./dist/device.d.ts",
"import": "./dist/device.js",
"require": "./dist/device.cjs.js"
},
"./file": {
"types": "./dist/file.d.ts",
"import": "./dist/file.js",
"require": "./dist/file.cjs.js"
},
"./font": {
"types": "./dist/font.d.ts",
"import": "./dist/font.js",
"require": "./dist/font.cjs.js"
},
"./fullscreen": {
"types": "./dist/fullscreen.d.ts",
"import": "./dist/fullscreen.js",
"require": "./dist/fullscreen.cjs.js"
},
"./image": {
"types": "./dist/image.d.ts",
"import": "./dist/image.js",
"require": "./dist/image.cjs.js"
},
"./ua": {
"types": "./dist/ua.d.ts",
"import": "./dist/ua.js",
"require": "./dist/ua.cjs.js"
},
"./url": {
"types": "./dist/url.d.ts",
"import": "./dist/url.js",
"require": "./dist/url.cjs.js"
},
"./utils": {
"types": "./dist/utils.d.ts",
"import": "./dist/utils.js",
"require": "./dist/utils.cjs.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "rollup -c",
"build:prod": "npm run clean && rollup -c --environment NODE_ENV:production",
"build:with-types": "npm run type-check:build && rollup -c",
"build:analyze": "npm run build:prod && npm run analyze:bundle",
"dev": "rollup -c -w",
"analyze:bundle": "npx rollup-plugin-visualizer dist/stats.html --open",
"test": "jest --config jest.config.js",
"test:watch": "jest --watch --config jest.config.js",
"test:coverage": "jest --coverage --config jest.config.js",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"type-check": "tsc --noEmit --project tsconfig.json",
"type-check:build": "tsc --noEmit --project tsconfig.build.json",
"type-check:test": "tsc --noEmit --project tsconfig.test.json",
"type-check:watch": "tsc --noEmit --watch --project tsconfig.json",
"validate": "npm run lint && npm run type-check && npm run test",
"validate:ci": "npm run lint && npm run type-check:build && npm run type-check:test && npm run test:coverage",
"clean": "rimraf dist coverage .tsbuildinfo",
"prebuild": "npm run clean",
"prepack": "npm run build:prod",
"release:patch": "npm version patch && npm run build:prod && npm publish",
"release:minor": "npm version minor && npm run build:prod && npm publish",
"release:major": "npm version major && npm run build:prod && npm publish",
"size": "npm run build:prod && bundlesize",
"size:why": "npm run build:prod && npx whybundled dist/index.js"
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@babel/preset-typescript": "^7.27.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@testing-library/jest-dom": "^6.6.4",
"@types/jest": "^30.0.0",
"@types/node": "^24.1.0",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"bundlesize": "^0.18.2",
"eslint": "^9.32.0",
"jest": "^30.0.5",
"jest-environment-jsdom": "^30.0.5",
"rimraf": "^6.0.1",
"rollup": "^4.46.1",
"rollup-plugin-bundle-analyzer": "^1.6.6",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-visualizer": "^6.0.3",
"ts-jest": "^29.4.0",
"tslib": "^2.8.1",
"typescript": "^5.8.3"
},
"overrides": {},
"engines": {
"node": ">=14.0.0",
"npm": ">=6.14.18",
"yarn": ">=3.0.0"
},
"browserslist": [
"defaults",
"> 1%",
"not dead",
"not op_mini all",
"last 2 versions",
"Chrome > 51",
"Edge > 15",
"Firefox > 54",
"Safari > 10",
"not IE <= 11",
"Android >= 6.0",
"iOS > 10",
"supports es6-module"
],
"publishConfig": {
"access": "public"
},
"bundlesize": [
{
"path": "./dist/index.js",
"maxSize": "50 kB",
"compression": "gzip"
},
{
"path": "./dist/index.umd.js",
"maxSize": "80 kB",
"compression": "gzip"
},
{
"path": "./dist/core.js",
"maxSize": "15 kB",
"compression": "gzip"
}
]
}