{"_id":"ycssmin","_rev":"151742","name":"ycssmin","description":"CSS Minification from YUICompressor","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"davglass","email":"davglass@gmail.com"}],"time":{"modified":"2021-06-03T11:33:10.000Z","created":"2012-10-15T15:52:55.485Z","1.0.1":"2012-10-24T23:10:20.707Z","1.0.0":"2012-10-15T15:52:55.485Z"},"users":{"zhangyaochun":true,"acs1899":true},"author":{"name":"Dav Glass","email":"davglass@gmail.com"},"repository":{"type":"git","url":"http://github.com/yui/ycssmin.git"},"versions":{"1.0.1":{"name":"ycssmin","version":"1.0.1","description":"CSS Minification from YUICompressor","main":"./cssmin","bin":{"ycssmin":"./bin/cssmin"},"devDependencies":{"yui-lint":"~0.1.1","jshint":"~0.9.0","istanbul":"~0.1.8","vows":"*"},"author":{"name":"Dav Glass","email":"davglass@gmail.com"},"contributors":[{"name":"Johan Bleuzen","url":"http://blog.johanbleuzen.fr"},{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"}],"keywords":["minify","cssmin","compressor","yuicompressor"],"scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json cssmin.js package.json","test":"istanbul cover --print both -- vows --spec ./tests/*.js"},"repository":{"type":"git","url":"http://github.com/yui/ycssmin.git"},"preferGlobal":"true","bugs":{"url":"http://github.com/yui/ycssmin/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yui/ycssmin/blob/master/LICENSE"}],"_id":"ycssmin@1.0.1","dist":{"shasum":"7cdde8db78cfab00d2901c3b2301e304faf4df16","size":245985,"noattachment":false,"key":"/ycssmin/-/ycssmin-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ycssmin/download/ycssmin-1.0.1.tgz"},"_npmVersion":"1.1.63","_npmUser":{"name":"davglass","email":"davglass@gmail.com"},"maintainers":[{"name":"davglass","email":"davglass@gmail.com"}],"directories":{},"publish_time":1351120220707,"_cnpm_publish_time":1351120220707,"_hasShrinkwrap":false},"1.0.0":{"name":"ycssmin","version":"1.0.0","description":"CSS Minification from YUICompressor","main":"./cssmin","bin":{"ycssmin":"./bin/cssmin"},"devDependencies":{"yui-lint":"~0.1.1","jshint":"~0.9.0","istanbul":"https://github.com/gotwarlost/istanbul/tarball/textreport","vows":"*"},"author":{"name":"Dav Glass","email":"davglass@gmail.com"},"contributors":[{"name":"Johan Bleuzen","url":"http://blog.johanbleuzen.fr"},{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"http://blog.izs.me/"}],"keywords":["minify","cssmin","compressor","yuicompressor"],"scripts":{"pretest":"jshint --config ./node_modules/yui-lint/jshint.json cssmin.js package.json","test":"istanbul cover --console both -- vows --spec ./tests/*.js"},"repository":{"type":"git","url":"http://github.com/yui/ycssmin.git"},"preferGlobal":"true","bugs":{"url":"http://github.com/yui/ycssmin/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yui/ycssmin/blob/master/LICENSE"}],"_id":"ycssmin@1.0.0","dist":{"shasum":"1bae7531f3fef73a5c7d2abec584bef73d2cbf86","size":245662,"noattachment":false,"key":"/ycssmin/-/ycssmin-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ycssmin/download/ycssmin-1.0.0.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"davglass","email":"davglass@gmail.com"},"maintainers":[{"name":"davglass","email":"davglass@gmail.com"}],"directories":{},"publish_time":1350316375485,"_cnpm_publish_time":1350316375485,"_hasShrinkwrap":false}},"readme":"CSSMin\n======\n\nThis project is a fork of [jbleuzen/node-cssmin](https://github.com/jbleuzen/node-cssmin).\n\nIt was originally based on the javascript for of the css minification tool used inside of \n[YUICompressor](https://github.com/yui/yuicompressor) based on code from Stoyan Stefanov and Isaac Schlueter.\n\nWe forked this project in order to maintain and up keep it on a regular basis.\n\n\nInstallation\n------------\n\nYou can either download the plugin and unzip it into to your project folder or you can use npm to install the `ycssmin` package.\n\n`npm -g i ycssmin`\n\nBuild Status\n------------\n\n[![Build Status](https://secure.travis-ci.org/yui/ycssmin.png)](http://travis-ci.org/yui/ycssmin)\n\nUsage\n-----\n\nThe module exports the cssmin function, so you can use it with: \n\n`var cssmin = require('ycssmin').cssmin;`\n\nThe function cssmin takes two arguments:\n* `input` : the CSS content you want to minimize.\n* `linebreakpos` : the number of characters before the end of the line. If empty, the output will have only one line.\n\t\nExample :\n\n```javascript\nvar fs = require('fs'),\n    cssmin = require('ycssmin').cssmin,\n    css = fs.readFileSync(\"/Any/Random/CSS/File.css\", encoding='utf8'),\n    min = cssmin(css);\n\nconsole.log(min);\n```\n\nLicense\n-------\n\n    Copyright 2012 Yahoo! Inc.\n    All rights reserved.\n\n    Redistribution and use in source and binary forms, with or without\n    modification, are permitted provided that the following conditions are met:\n        * Redistributions of source code must retain the above copyright\n          notice, this list of conditions and the following disclaimer.\n        * Redistributions in binary form must reproduce the above copyright\n          notice, this list of conditions and the following disclaimer in the\n          documentation and/or other materials provided with the distribution.\n        * Neither the name of the Yahoo! Inc. nor the\n          names of its contributors may be used to endorse or promote products\n          derived from this software without specific prior written permission.\n\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n    DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY\n    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nThanks\n------\n\nThanks to Johan BLEUZEN for originally porting this to node.js\n","_attachments":{},"bugs":{"url":"http://github.com/yui/ycssmin/issues"}}