{"_id":"@resvg/resvg-js-cli","name":"@resvg/resvg-js-cli","dist-tags":{"next":"2.6.2-beta.1","latest":"2.6.2-beta.1"},"versions":{"2.6.2-beta.1":{"name":"@resvg/resvg-js-cli","type":"module","version":"2.6.2-beta.1","description":"A high-performance SVG renderer CLI, powered by resvg-js and Rust based resvg and napi-rs","license":"MPL-2.0","homepage":"https://github.com/Zhengqbbb/resvg-js-cli#readme","repository":{"type":"git","url":"git+ssh://git@github.com/Zhengqbbb/resvg-js-cli.git"},"bugs":{"url":"https://github.com/Zhengqbbb/resvg-js-cli/issues"},"keywords":["CLI","resvg","svg","node-resvg","resvg-js","resvg-node","rust","svg2png","svg2img","svg to png"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","bin":{"resvg-js-cli":"bin/resvg-js-cli.mjs","resvg-js":"bin/resvg-js-cli.mjs"},"dependencies":{"@resvg/resvg-js":"^2.6.2"},"devDependencies":{"@antfu/eslint-config":"^2.27.1","@types/minimist":"^1.2.5","@types/node":"^20.16.1","bumpp":"^9.5.2","cz-git":"^1.9.4","czg":"^1.9.4","eslint":"^9.9.1","lint-staged":"^15.2.9","minimist":"^1.2.8","npm-run-all2":"^6.2.2","pnpm":"^9.8.0","simple-git-hooks":"^2.11.1","tsup":"^8.2.4","tsx":"^4.17.0","typescript":"^5.5.4","vitest":"^2.0.5","@resvg/resvg-js-cli":"2.6.2-beta.1"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged && pnpm lint"},"lint-staged":{"*.ts":"eslint --fix"},"scripts":{"x":"resvg-js-cli","dev":"tsup --watch","build":"tsup","cz":"czg","lint":"eslint .","lint:fix":"eslint . --fix","test":"vitest","release":"run-s release:bump release:publish","release:bump":"bumpp --all -c 'build: :bookmark: publish v%s'","release:publish":"pnpm publish","release:next":"bumpp --no-commit --no-push --no-tag && pnpm publish --tag next --no-git-checks"},"_id":"@resvg/resvg-js-cli@2.6.2-beta.1","_integrity":"sha512-YettZYgLWFNfk0EYbyYyJTolhlNR1CF29GfjCzKaZfC46AGwC2L7Sczp0n5vxQ6fA6b6clzr53Kb3/RDkRdP2g==","_resolved":"/private/var/folders/8d/hqk0xrfs0kx13_c_b3mbwt_80000gn/T/618fdd08ec493ab78c6b9a882b005b6f/resvg-resvg-js-cli-2.6.2-beta.1.tgz","_from":"file:resvg-resvg-js-cli-2.6.2-beta.1.tgz","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-YettZYgLWFNfk0EYbyYyJTolhlNR1CF29GfjCzKaZfC46AGwC2L7Sczp0n5vxQ6fA6b6clzr53Kb3/RDkRdP2g==","shasum":"4884bd4872cd1633d231704c748843b0be4ecce9","tarball":"https://registry.npmjs.org/@resvg/resvg-js-cli/-/resvg-js-cli-2.6.2-beta.1.tgz","fileCount":8,"unpackedSize":47877,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA6lJH6tWx1tGzxw7kywUOIyCot6stEUWhYd7zxOV4qAIhAPsgQnZaZZjzBt2TCPoZs4qsBAVX2ORyiFopo3gnuYwm"}]},"_npmUser":{"name":"qbb.sh","email":"1074059947@qq.com"},"directories":{},"maintainers":[{"name":"qbb.sh","email":"1074059947@qq.com"},{"name":"broooooklyn","email":"lynweklm@gmail.com"},{"name":"yisi","email":"yiorsi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resvg-js-cli_2.6.2-beta.1_1724487381774_0.7605010985426086"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-24T08:16:21.683Z","2.6.2-beta.1":"2024-08-24T08:16:21.958Z","modified":"2024-08-24T08:16:22.266Z"},"maintainers":[{"name":"qbb.sh","email":"1074059947@qq.com"},{"name":"broooooklyn","email":"lynweklm@gmail.com"},{"name":"yisi","email":"yiorsi@gmail.com"}],"description":"A high-performance SVG renderer CLI, powered by resvg-js and Rust based resvg and napi-rs","homepage":"https://github.com/Zhengqbbb/resvg-js-cli#readme","keywords":["CLI","resvg","svg","node-resvg","resvg-js","resvg-node","rust","svg2png","svg2img","svg to png"],"repository":{"type":"git","url":"git+ssh://git@github.com/Zhengqbbb/resvg-js-cli.git"},"bugs":{"url":"https://github.com/Zhengqbbb/resvg-js-cli/issues"},"license":"MPL-2.0","readme":"<h1 align=\"center\">@resvg/resvg-js-cli</h1>\n\n<p align=\"center\">\n  <img alt=\"version\" src=\"https://img.shields.io/npm/v/@resvg/resvg-js-cli?color=212121&label=\">\n</p>\n\n<p align=\"center\">\n    CLI entry for the <a href=\"https://www.npmjs.com/package/@resvg/resvg-js\">@resvg/resvg-js</a> package. <br>A high-performance SVG renderer CLI, powered by <a href=\"https://github.com/yisibl/resvg-js\">resvg-js</a>.\n</p>\n\n> [resvg-js](https://github.com/yisibl/resvg-js): a high-performance SVG renderer and toolkit, powered by Rust based [resvg](https://github.com/RazrFalcon/resvg/), with Node.js backend using [napi-rs](https://github.com/napi-rs/napi-rs), also a pure WebAssembly backend.\n\n## Installation\n\n### Direct Use\n\n```sh\nnpx @resvg/resvg-js-cli --help\n# or\nbunx @resvg/resvg-js-cli --help\n```\n\n### Global Install\n\n```sh\nnpm install -g @resvg/resvg-js-cli\nresvg-js --help\n```\n\n## Usage\n\n```sh\n$ npx @resvg/resvg-js-cli --help\n\nNAME:\n    resvg-js - A high-performance SVG renderer CLI, powered by resvg-js and Rust based resvg and napi-rs\n\nWEBSITE:\n    https://github.com/Zhengqbbb/resvg-js-cli\n    https://github.com/yisibl/resvg-js\n\nVERSION: 2.6.1\n\nSYNOPSIS:\n    resvg-js [OPTIONS] <input_svg_path> [output_path]   # If empty output_path. The raw data of image to stdout\n    resvg-js [OPTIONS] - [output_path]                  # Receives svg string from stdin\n\nOPTIONS:\n  Font:\n    --no-system-font                Unuse system font, it will be faster\n    --font-file        <file_path>  Local font file path   [Mutilple]\n    --font-dir          <dir_path>  Local font directories [Mutilple]\n    --font-default-size      <num>  Default font size      [Default: 12]\n    --font-default-family    <str>  The default font family\n    --font-serif-family      <str>  The serif font family\n    --font-sans-serif-family <str>  The sans-serif font family\n    --font-cursive-family    <str>  The cursive font family\n    --font-fantasy-family    <str>  The fantasy font family\n    --font-monospace-family  <str>  The monospace font family\n\n  Rendering Optimize:\n    --shape-rendering <0|1|2>       Shape rendering optimize rule\n        [0: optimizeSpeed, 1: crispEdges, 2: geometricPrecision]\n    --text-rendering  <0|1|2>       Text rendering optimize rule\n        [0: optimizeSpeed, 1: optimizeLegibility, 2: geometricPrecision]\n    --image-rendering <0|1>         Image rendering optimize rule\n        [0: optimizeQuality, 1: optimizeSpeed]\n\n  Fit To (default use original):\n    --fit-width   <num>             Use fit to width mode\n    --fit-height  <num>             Use fit to height mode\n    --fit-zoom    <num>             Use fit to zoom mode\n\n  Crop:\n    --crop-top    <num>             Crop image top size\n    --crop-left   <num>             Crop image left size\n    --crop-right  <num>             Crop image right size\n    --crop-bottom <num>             Crop image bottom size\n\n    --dpi        <num>              Dots Per Inch\n    --language   <lang>             Language code [Mutilple]\n    --background <CSS3_color>       Background color\n    --log-level  <level>            Setting log level\n        [level: \"off\" | \"error\" | \"warn\" | \"info\" | \"debug\" | \"trace\"]\n\nARGS:\n    <input_file_path>               SVG file path. Use \"-\" for stdin\n    [output_file_path]              Output image file path\n\nEXAMPLES:\n  $ resvg-js input.svg output.png\n  $ resvg-js --fit-width 1200 input.svg output.png\n  $ resvg-js \\\n        --no-system-font                    \\\n        --font-file \"./Font-Light.ttf\"      \\\n        --font-file \"./Font-Bold.ttf\"       \\\n        --font-default-family \"Font\"        \\\n        --background \"rgba(238,235,230,.9)\" \\\n        ./input.svg ./output.png\n  $ cat a.svg | resvg-js --fit-width 1200 --image-rending 0 - output.png\n```\n\n## Contributing\n\n```sh\npnpm install\npnpm dev        # dev mode\npnpm x --help   # start up the CLI and development\n```\n\n## License\n\nPlease use all lowercase `resvg-js` when referencing project names.\n\n[MPLv2.0](https://www.mozilla.org/en-US/MPL/)\n\nCopyright (c) 2024, [Zhengqbbb](https://github.com/Zhengqbbb)<br>\nCopyright (c) 2021-present, yisibl(一丝)\n","readmeFilename":"README.md"}