Neural Processing Mechanisms
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

tachyons-validate-classnames

1.1.2 • Public • Published

tachyons-validate-classnames stability

npm version build status test coverage downloads js-standard-style

Validate if a CSS class name is valid for Tachyons. Useful to validate Tachyons overrides are valid.

Usage

const validate = require('tachyons-validate-classnames')
 
validate('.black { color: white }')
// => { selectors: ['.black'], failed: [] }
 
validate('.foo { color: white }')
// => { selectors: ['.foo'], failed: ['.foo'] }

CLI

Usage: tachyons-validate-classnames [options] [filename]
 
Options:
  -h, --help        Output usage information
  -v, --version     Output version number
 
Examples:
  $ tachyons-validate-classnames ./bundle.css  # Validate a file
  $ curl foobar.com/bundle.css | tachyons-validate-classnames  # Validate stdin
 
Docs: https://github.com/yoshuawuyts/tachyons-validate-class
Bugs: https://github.com/yoshuawuyts/tachyons-validate-class/issues

API

validate(css)

Validate a string of CSS. Returns all selectors and all failed selectors.

Installation

$ npm install tachyons-validate-classnames

License

MIT

install

npm i tachyons-validate-classnames

Downloadsweekly downloads

0

version

1.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability