This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 400,000 packages pre-installed, including csscodesniffer
with all npm
packages installed. Try it out:
require()
any package directly from npmawait
any promise instead of using callbacks (example)This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Verify that code standards are being properly followed with code sniffs. The code is currently in an early alpha state.
Install the module with: npm install csscodesniffer
var CSSCodeSniffer = require('csscodesniffer');
var sniffer = new CSSCodeSniffer(parser, ruleset);
CSSCodeSniffer.run(source, reporter);
csscs /path/to/css/file.css
(Coming soon)
(Coming soon)
There are a few projects that inspired my work on CSS Code Sniffer:
If you plan on contributing for CSS Code Sniffer, we just ask that you submit a Pull Request from your forked repo with passing tests to verify your additions/fixes.
Also, contributing is not strictly limited to code pull requests. We need plenty of bug submissions, documentation updating, and any other quality assurance tests.
Copyright (c) 2014 Jake Smith Licensed under the MIT license.