motion
Version:
motion - moving development forward
80 lines (79 loc) • 4.31 kB
JSON
{
"_args": [
[
"csso@https://registry.npmjs.org/csso/-/csso-1.4.4.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "csso@>=1.4.2 <1.5.0",
"_id": "csso@1.4.4",
"_inCache": true,
"_location": "/csso",
"_phantomChildren": {},
"_requested": {
"name": "csso",
"raw": "csso@https://registry.npmjs.org/csso/-/csso-1.4.4.tgz",
"rawSpec": "https://registry.npmjs.org/csso/-/csso-1.4.4.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/csso/-/csso-1.4.4.tgz",
"type": "remote"
},
"_requiredBy": [
"/svgo"
],
"_resolved": "https://registry.npmjs.org/csso/-/csso-1.4.4.tgz",
"_shasum": "0aebfa5093ef30ccac6db3ff5759dfca621b6b6a",
"_shrinkwrap": null,
"_spec": "csso@https://registry.npmjs.org/csso/-/csso-1.4.4.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"email": "skryzhanovsky@ya.ru",
"name": "Sergey Kryzhanovsky",
"url": "https://github.com/afelix"
},
"bin": {
"csso": "./bin/csso"
},
"bugs": {
"url": "https://github.com/css/csso/issues"
},
"dependencies": {
"clap": "^1.0.9"
},
"description": "CSSO — CSS optimizer",
"devDependencies": {
"browserify": "^12.0.1",
"jscs": "^2.6.0",
"mocha": "~2.3.3",
"uglify-js": "^2.6.1"
},
"engines": {
"node": ">=0.12.0"
},
"files": [
"HISTORY.md",
"LICENSE",
"README.md",
"bin",
"dist/csso-browser.js",
"lib"
],
"homepage": "https://github.com/css/csso",
"license": "MIT",
"main": "./lib/index",
"name": "csso",
"optionalDependencies": {},
"readme": "[](https://www.npmjs.com/package/csso)\n[](https://travis-ci.org/css/csso)\n[](https://david-dm.org/css/csso)\n[](https://david-dm.org/css/csso#info=devDependencies)\n\nCSSO (CSS Optimizer) is a CSS minimizer unlike others. In addition to usual minification techniques it can perform structural optimization of CSS files, resulting in smaller file size compared to other minifiers.\n\n## Install\n\n```\nnpm install -g csso\n```\n\n## Usage\n\n### Command line\n\n```\ncsso [input] [output] [options]\n\nOptions:\n\n --debug Output intermediate state of CSS during compression\n -h, --help Output usage information\n -i, --input <filename> Input file\n -o, --output <filename> Output file (result outputs to stdout if not set)\n --restructure-off Turns structure minimization off\n -v, --version Output the version\n```\n\nSome examples:\n\n```\n> csso in.css out.css\n\n> csso in.css\n...output result in stdout...\n\n> echo \".test { color: #ff0000; }\" | csso\n.test{color:red}\n\n> cat source1.css source2.css | csso | gzip -9 -c > production.css.gz\n```\n\n### API\n\n```js\nvar csso = require('csso');\n\nvar compressed = csso.minify('.test { color: #ff0000; }');\nconsole.log(compressed);\n// .test{color:red}\n\n// you may do it step by step\nvar ast = csso.parse('.test { color: #ff0000; }');\nast = csso.compress(ast);\nvar compressed = csso.translate(ast, true);\nconsole.log(compressed);\n// .test{color:red}\n```\n\n## Documentation\n\n> May be outdated\n\n- [English](https://github.com/css/csso/blob/master/docs/index/index.en.md)\n- [Русский](https://github.com/css/csso/blob/master/docs/index/index.ru.md)\n- [日本語](https://github.com/css/csso/blob/master/docs/index/index.ja.md)\n- [한국어](https://github.com/css/csso/blob/master/docs/index/index.ko.md)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/css/csso.git"
},
"scripts": {
"browserify": "browserify --standalone csso lib/index.js | uglifyjs --compress --mangle -o dist/csso-browser.js",
"gh-pages": "git clone -b gh-pages https://github.com/css/csso.git .gh-pages && npm run browserify && cp dist/csso-browser.js .gh-pages/ && cd .gh-pages && git commit -am \"update\" && git push && cd .. && rm -rf .gh-pages",
"prepublish": "npm run browserify",
"test": "jscs . && mocha --reporter dot"
},
"version": "1.4.4"
}