@amandaghassaei/flat-svg
Version:
A TypeScript library for converting nested SVGs into a flat list of elements, paths, or segments and applying style-based filters.
80 lines (79 loc) • 2.2 kB
JSON
{
"name": "@amandaghassaei/flat-svg",
"version": "2.0.4",
"description": "A TypeScript library for converting nested SVGs into a flat list of elements, paths, or segments and applying style-based filters.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"keywords": [
"svg",
"flat",
"flatten",
"flattener",
"ungroup",
"path",
"shape",
"transform",
"style",
"parse",
"element",
"split",
"segment",
"filter"
],
"scripts": {
"build": "rollup --config && tsc -p tsconfig.build.json && npm run docs && npm run make-coverage-badge",
"test": "mocha 'test/**/*.test.ts'",
"test-with-coverage": "c8 mocha 'test/**/*.test.ts'",
"make-coverage-badge": "c8 --reporter=json-summary mocha 'test/**/*.test.ts' && coverage-badge-creator",
"docs": "typedoc --options ./typedoc.json",
"serve": "http-server -p 8080 -c-1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/amandaghassaei/flat-svg.git"
},
"author": "Amanda Ghassaei",
"license": "MIT",
"bugs": {
"url": "https://github.com/amandaghassaei/flat-svg/issues"
},
"homepage": "https://apps.amandaghassaei.com/flat-svg/demo/",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@adobe/css-tools": "^4.4.4",
"@amandaghassaei/type-checks": "^1.1.1",
"@types/svg-parser": "^2.0.3",
"colord": "^2.9.3",
"svg-parser": "^2.0.4",
"svgpath": "^2.6.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-terser": "^1.0.0",
"@rollup/plugin-typescript": "^12.1.0",
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.1",
"@types/node": "^22.0.0",
"c8": "^10.0.0",
"chai": "^4.3.6",
"coverage-badge-creator": "^1.0.17",
"http-server": "^14.1.1",
"mocha": "^11.0.0",
"rollup": "^4.0.0",
"rollup-plugin-delete": "^3.0.0",
"rollup-plugin-dts": "^6.1.0",
"tslib": "^2.8.1",
"tsx": "^4.19.3",
"typedoc": "^0.28.0",
"typedoc-plugin-markdown": "^4.0.0",
"typescript": "^5.7.0"
},
"files": [
"dist",
"src"
]
}