svgo

编程之家收集整理的这个编程导航主要介绍了svgo编程之家,现在分享给大家,也给大家做个参考。

svgo 介绍

SSVGO:基于Nodejs的工具,用于优化SVG矢量图形文件,是一个异步的、事件驱动的网络应用。

svgo安装

[sudo] npm install -g svgo

用法

Usage:

svgo [OPTIONS] [ARGS]

Options:

-h,--help : Help

-v,--version : Version

-i INPUT,--input=INPUT : Input file,"-" for STDIN

-s STRING,--string=STRING : Input SVG data string

-f FOLDER,--folder=FOLDER : Input folder,optimize and rewrite all *.svg files

-o OUTPUT,--output=OUTPUT : Output file or folder (by default the same as the input),"-" for STDOUT

-p PRECISION,--precision=PRECISION : Set number of digits in the fractional part,overrides plugins params

--config=CONFIG : Config file or jsON string to extend or replace default

--disable=PLUGIN : Disable plugin by name,"--disable=PLUGIN1,PLUGIN2" for multiple plugins

--enable=PLUGIN : Enable plugin by name,"--enable=PLUGIN3,PLUGIN4" for multiple plugins

--datauri=DATAURI : Output as Data URI string (base64,URI encoded or unencoded)

--multipass : Pass over SVGs multiple times to ensure all optimizations are applied

--pretty : Make SVG pretty printed

--indent=INDENT : Indent number when pretty printing SVGs

-r,--recursive : Use with '-f'. Optimizes *.svg files in folders recursively.

-q,--quiet : Only output error messages,not regular status messages

--show-plugins : Show available plugins and exit

Arguments:

INPUT : Alias to --input

GitHub:https://github.com/svg/svgo

网站描述:一个基于 Nodejs 的 SVG 矢量图形优化工具

svgo

官方网站:

小编说

以上是编程之家为你收集整理的svgo全部内容。

如果觉得编程之家网站内容还不错,欢迎将编程之家推荐给好友。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


node-crawler,一款最好的node.js爬虫工具
consolidate.js,一个Node.js 模板引擎的集合
nodemon,一个node调试工具
rxdb,Web 实时数据库,支持Node.js等多个终端
axios,基于http客户端的promise,面向浏览器和nodejs
Agenda,基于 node 的一个轻量级任务调度类库
Nodal.js,一个可扩展的,以意见为依据的全服务框架
node-mongodb-native,用于连接操作mongodb的nodejs驱动
Koa,基于 Node.js 平台的下一代 web 开发框架
synaptic,用于 Node.js 和浏览器的自由结构神经网络库
node-postgres【pg】,在nodejs中用来连接PostgreSql数据库的模块
Lass.js,搭建基于 Node.js 的脚手架工具
bluebird,一个第三方Promise规范实现库
nlp.js,基于node自然语言处理的一个库
Feathers.js,一个非常高效灵活的,可以从零构建应用的框架
Cheerio.js,是nodejs特别为服务端定制的,能够快速灵活的对JQuery核心进行实现
Roarr,一个Node.js和浏览器的JSON logger
Kue,一款为 node.js 而构建,由 redis 支持的优先级队列
Mean.js,一种全栈 Javascript 开发架构
SuperAgent,一个轻量的,渐进式的ajax api