UNPKG

style-to-js

Version:

Parses CSS inline style to JavaScript object (camelCased).

75 lines (74 loc) 1.97 kB
{ "name": "style-to-js", "version": "2.0.0", "description": "Parses CSS inline style to JavaScript object (camelCased).", "author": "Mark <mark@remarkablemark.org>", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/index.mjs", "require": "./dist/index.js" } }, "scripts": { "build": "tsdown", "clean": "rm -rf dist umd", "lint": "eslint .", "lint:fix": "npm run lint -- --fix", "lint:package": "publint", "lint:tsc": "tsc --noEmit", "lint:types": "npx @arethetypeswrong/cli --pack", "prepare": "husky", "prepublishOnly": "npm run lint && npm run lint:tsc && npm run test:ci && npm run clean && npm run build", "test": "jest --detectOpenHandles", "test:ci": "CI=true npm test -- --ci --colors --coverage", "test:watch": "npm test -- --watch" }, "repository": { "type": "git", "url": "git+https://github.com/remarkablemark/style-to-js.git" }, "bugs": { "url": "https://github.com/remarkablemark/style-to-js/issues" }, "keywords": [ "css", "javascript", "object", "pojo", "style", "style-to-js" ], "dependencies": { "style-to-object": "1.0.14" }, "devDependencies": { "@arethetypeswrong/cli": "0.18.2", "@commitlint/cli": "21.0.1", "@commitlint/config-conventional": "21.0.1", "@eslint/js": "10.0.1", "@types/jest": "30.0.0", "eslint": "10.4.0", "eslint-config-prettier": "10.1.8", "eslint-plugin-prettier": "5.5.5", "eslint-plugin-simple-import-sort": "13.0.0", "globals": "17.6.0", "husky": "9.1.7", "jest": "30.4.2", "lint-staged": "17.0.5", "prettier": "3.8.3", "publint": "0.3.21", "ts-jest": "29.4.10", "ts-node": "10.9.2", "tsdown": "0.22.0", "typescript": "6.0.3", "typescript-eslint": "8.59.4" }, "files": [ "dist/", "umd/" ], "license": "MIT" }