{"_id":"csslike","_rev":"7-6dd5e8e93ac62262aacc5a6d7504cb55","name":"csslike","description":"a css preprocessor","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"csslike","description":"a css preprocessor","author":{"name":"Christopher Jeffrey"},"version":"0.0.1","main":"./lib/csslike.js","repository":{"type":"git","url":"git://github.com/chjj/csslike.git"},"keywords":["css","preprocessor"],"dependencies":{},"devDependencies":{},"_id":"csslike@0.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"f6e135884e144ffe474a0446d55a1ce4e3854a6f","tarball":"https://registry.npmjs.org/csslike/-/csslike-0.0.1.tgz","integrity":"sha512-b+R6gvE876HHS+oRKUMvd/AZ/T6hPhKtHNZVjxA/iX9kmYvUzQVBkWpLOQpAljSax589vCixRs8Boc92pTasbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgB4OCZjJJJqUmh8DZ4+skohtbVHu0ZzKECg24T9yYbAIgHljZlcQBvMHIBCwXW8QDK7PTSFjBX/z9jW+f34uE8Bo="}]},"scripts":{},"directories":{}},"0.0.2":{"name":"csslike","description":"a css preprocessor","author":{"name":"Christopher Jeffrey"},"version":"0.0.2","main":"./index.js","repository":{"type":"git","url":"git://github.com/chjj/csslike.git"},"keywords":["css","preprocessor"],"bugs":{"url":"https://github.com/chjj/csslike/issues"},"homepage":"https://github.com/chjj/csslike","_id":"csslike@0.0.2","dist":{"shasum":"d1ea744a54090eb5164e2b505205bb52932b38cb","tarball":"https://registry.npmjs.org/csslike/-/csslike-0.0.2.tgz","integrity":"sha512-2ugzDANAfiMJSuMVCiNx3v4Az7HcDLk108LJakjFLxbD8Ci4Q70r4u7RO93XCBTgzs5v1AlxrY3zqYayv47w0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkEttkxf4KhmoY1lwx9VKlAzwrM4HLCAw8B8fC+awMYAiByoxNvh7qRxaoxA3p4GKh8vDPnopXA99WZecAXfND/wA=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"chjj","email":"chjjeffrey@gmail.com"},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}]}},"maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"}],"time":{"modified":"2022-06-14T05:05:34.164Z","created":"2011-07-20T06:49:34.195Z","0.0.1":"2011-07-20T06:49:34.671Z","0.0.2":"2014-02-02T04:08:47.161Z"},"author":{"name":"Christopher Jeffrey"},"repository":{"type":"git","url":"git://github.com/chjj/csslike.git"},"readme":"# csslike\n\n__csslike__ is a CSS preprocessor designed to follow the latest www-style\n[proposals from Tab Atkins][tab] for CSS [variables][vars], [mixins][mixins],\nand [nested rules][nest] (a lot of which appears to be based on LESS and SASS'\ncurly brace syntax, but with some differences).\n\nIt's a work in progress. I wanted to make sure the lexer was extremely robust\nfor forward compatibility, in case there are anymore additions. So, the lexer\nis pretty verbose, it wasn't built for speed, but it will tokenize anything,\nnothing is hardcoded.\n\nIt also includes some small features like auto-base64'ing images, pretty\nprinting, minifying, as well as imported stylesheets, but for the most part, I\nwant to keep it in line with potential standards.\n\n[tab]: http://www.xanthir.com/blog/b49w0\n[vars]: http://lists.w3.org/Archives/Public/www-style/2011Feb/0311.html\n[mixins]: http://lists.w3.org/Archives/Public/www-style/2011Mar/0478.html\n[nest]: http://lists.w3.org/Archives/Public/www-style/2011Jun/0022.html\n\n[var-draft]: http://lists.w3.org/Archives/Public/www-style/2011Jun/0329.html\n\n## Syntax\n\n``` css\n@var $green #00ff00;\n\n@trait bg {\n  background: $green;\n}\n\n@trait content($t) {\n  content: $t;\n}\n\narticle {\n  color: black;\n  & > header {\n    border: 1px solid;\n    & > h1 {\n      background: orange;\n    }\n  }\n  @mixin bg;\n  @mixin content(\"hello world\");\n}\n```\n\noutput:\n\n``` css\narticle {\n  color: black;\n  background: #00ff00;\n  content: \"hello world\";\n}\n  article > header {\n    border: 1px solid;\n  }\n    article > header > h1 {\n      background: orange;\n    }\n```\n\n## Middleware Usage\n\n``` js\napp.use(\n  csslike.handle({\n    dir: __dirname,\n    minify: true,\n    cache: true\n  })\n});\n```\n\nor for a specific file:\n\n``` js\napp.use('/my_stylesheet',\n  csslike.handle({\n    file: __dirname + '/static/style.css',\n    dir: __dirname,\n    minify: true,\n    cache: true\n  })\n});\n```\n\n## License\n\nCopyright (c) 2011, Christopher Jeffrey. (MIT Licensed)\nSee LICENSE for more info.\n","readmeFilename":"README.md"}