UNPKG

react-svg

Version:

A React component that injects SVG into the DOM.

127 lines (126 loc) 3.6 kB
{ "name": "react-svg", "version": "19.1.5", "description": "A React component that injects SVG into the DOM.", "type": "commonjs", "exports": { ".": { "import": { "types": "./dist/react-svg.d.mts", "default": "./dist/react-svg.mjs" }, "default": { "types": "./dist/react-svg.d.cts", "default": "./dist/react-svg.cjs" } }, "./package.json": "./package.json" }, "main": "dist/react-svg.cjs", "module": "dist/react-svg.mjs", "types": "dist/react-svg.d.cts", "sideEffects": false, "size-limit": [ { "name": "ESM bundle", "path": "dist/react-svg.mjs", "gzip": true, "limit": "2 kB" }, { "name": "CJS bundle", "path": "dist/react-svg.cjs", "gzip": true, "limit": "2.5 kB" } ], "files": [ "dist", "src" ], "scripts": { "build": "run-s clean bundle", "bundle": "tsdown", "check:format": "prettier --list-different \"**/*.{cjs,cts,js,mjs,mts,ts,tsx}\"", "check:types": "tsc --noEmit", "clean": "run-p clean:*", "clean:coverage": "shx rm -rf coverage", "clean:react": "ts-node ./scripts/clean-react", "format": "prettier --write \"**/*.{cjs,cts,js,mjs,mts,ts,tsx}\"", "lint": "eslint .", "package:attw": "attw --pack .", "package:publint": "publint", "postbuild": "run-s package:*", "size": "size-limit", "test": "run-s check:* lint build size test:*", "test:cjs": "jest --config ./config/jest/config.cjs.js", "test:dist": "jest --config ./config/jest/config.dist.js", "test:es": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config ./config/jest/config.es.js", "test:src": "jest --config ./config/jest/config.src.js", "test:react": "ts-node ./scripts/test-react" }, "repository": { "type": "git", "url": "git+https://github.com/tanem/react-svg.git" }, "keywords": [ "dom", "html", "images", "img", "javascript", "react", "scalable vector graphics", "svg", "svginjector", "typescript" ], "author": "Tane Morgan (https://github.com/tanem)", "license": "MIT", "bugs": "https://github.com/tanem/react-svg/issues", "homepage": "https://github.com/tanem/react-svg", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "dependencies": { "@tanem/svg-injector": "^12.0.0" }, "devDependencies": { "@arethetypeswrong/cli": "0.18.5", "@eslint-react/eslint-plugin": "5.18.0", "@eslint/js": "10.0.1", "@faker-js/faker": "10.3.0", "@jest/globals": "30.2.0", "@size-limit/file": "13.0.2", "@testing-library/react": "16.3.2", "@types/jest": "30.0.0", "@types/node": "25.3.2", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", "@types/shelljs": "0.10.0", "css.escape": "1.5.1", "eslint": "10.8.0", "eslint-config-prettier": "10.1.8", "eslint-plugin-perfectionist": "5.10.0", "eslint-plugin-react-hooks": "7.1.1", "eslint-plugin-simple-import-sort": "12.1.1", "globals": "17.3.0", "jest": "30.2.0", "jest-environment-jsdom": "30.2.0", "nock": "13.5.6", "npm-run-all2": "8.0.4", "prettier": "3.8.1", "publint": "0.3.22", "react": "19.2.4", "react-dom": "19.2.4", "shelljs": "0.10.0", "shx": "0.4.0", "size-limit": "13.0.2", "ts-jest": "29.4.6", "ts-node": "10.9.2", "tsdown": "0.22.14", "typescript": "5.9.3", "typescript-eslint": "8.56.1" } }