node-inkscape:inkscape实用程序作为可读可写流

时间:2021-04-27 21:01:16
【文件属性】:
文件名称:node-inkscape:inkscape实用程序作为可读可写流
文件大小:16KB
文件格式:ZIP
更新时间:2021-04-27 21:01:16
JavaScript 节点图 inkscape命令行实用程序作为可读/可写流。 这对于不需要担心将输入写入光盘并随后读取输出的情况非常方便。 构造函数可以选择使用inkscape二进制文件的命令行选项数组: var Inkscape = require ( 'inkscape' ) , svgToPdfConverter = new Inkscape ( [ '--export-pdf' , '--export-width=1024' ] ) ; sourceStream . pipe ( svgToPdfConverter ) . pipe ( destinationStream ) ; 导入类型也可以提供给构造函数(将PDF转换为PNG): var Inkscape = require ( 'inkscape' ) , pdfToPngConverter = new Inkscape (
【文件预览】:
node-inkscape-master
----.travis.yml(406B)
----.eslintrc(411B)
----.jshintignore(22B)
----package.json(2KB)
----test()
--------Inkscape.js(13KB)
--------mocha.opts(46B)
--------test.svg(3KB)
----.prettierrc(26B)
----.prettierignore(109B)
----LICENSE(1KB)
----.gitignore(40B)
----CHANGELOG.md(13KB)
----lib()
--------Inkscape.js(8KB)
----.npmrc(40B)
----README.md(2KB)
----.jshintrc(5KB)
----.eslintignore(31B)
----.editorconfig(243B)

网友评论