UNPKG

convert-svg-to-png

Version:

Converts SVG to PNG using headless Chromium

81 lines (80 loc) 2.23 kB
{ "name": "convert-svg-to-png", "version": "0.7.1", "description": "Converts SVG to PNG using headless Chromium", "homepage": "https://github.com/neocotic/convert-svg", "bugs": { "url": "https://github.com/neocotic/convert-svg/issues" }, "author": { "name": "neocotic", "url": "https://github.com/neocotic" }, "funding": [ { "type": "individual", "url": "https://github.com/sponsors/neocotic" }, { "type": "patreon", "url": "https://www.patreon.com/neocotic" } ], "license": "MIT", "keywords": [ "convert", "converter", "svg", "png", "headless", "chromium" ], "repository": { "type": "git", "url": "https://github.com/neocotic/convert-svg.git", "directory": "packages/convert-svg-to-png" }, "exports": { ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/commonjs/index.d.ts", "default": "./dist/commonjs/index.js" } }, "./package.json": "./package.json" }, "type": "module", "types": "./dist/commonjs/index.d.ts", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js", "scripts": { "build": "tshy", "test": "node --import tsx --enable-source-maps --test \"test/**/*.test.ts\"", "pretest:docker": "rimraf ./test/fixtures/actual && docker buildx build -t convert-svg-to-png-test --build-arg PACKAGE_NAME=convert-svg-to-png -f ../../docker/test/Dockerfile ../..", "test:docker": "docker run -i --init --cap-add=SYS_ADMIN --rm --env CONVERT_SVG_LAUNCH_OPTIONS=\"$CONVERT_SVG_LAUNCH_OPTIONS\" --env CONVERT_SVG_TEST_OPTIONS=\"$CONVERT_SVG_TEST_OPTIONS\" -v $(PWD)/test/fixtures/actual:/workspace/test/fixtures/actual convert-svg-to-png-test" }, "dependencies": { "convert-svg-core": "^0.7.1" }, "devDependencies": { "@types/node": "^24.0.3", "puppeteer-core": "^24.10.1", "rimraf": "^6.0.1", "sinon": "^21.0.0", "tshy": "^3.0.2", "tsx": "^4.20.3" }, "engines": { "node": ">=22" }, "tshy": { "exports": { ".": "./src/index.ts", "./package.json": "./package.json" } } }