Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

tachyons-validate-classnames

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tachyons-validate-classnames

Validate if a string of CSS to see if it contains valid Tachyons classnames

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

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

Keywords

tachyons

FAQs

Package last updated on 27 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts