Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@css-blocks/cli

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@css-blocks/cli

Command line interface to css-blocks.

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by1900%
Maintainers
2
Weekly downloads
 
Created
Source

CSS Blocks Command Line Interface

A simple interface for working with CSS Blocks. Not meant to replace a proper build tool integration.

Installation

yarn add @css-blocks/cli

or run without installation:

npx @css-blocks/cli validate blocks/*.block.css
npx @css-blocks/cli convert my-bem-file.css

Usage

css-blocks <cmd> [options] block-dir-or-file...

Commands:
  css-blocks validate <blocks..>  Validate block file syntax.
  css-blocks convert <files..>    Convert BEM syntax to block file syntax.

Options:
  --version        Show version number                                [boolean]
  --preprocessors  A JS file that exports an object that maps          [string]
                   extensions to a preprocessor function for that type.
  --npm            Allow importing from node_modules                  [boolean]
  --alias          Define an import alias. Requires two arguments:      [array]
                   an alias and a directory.
  --help           Show help                                          [boolean]

Keywords

FAQs

Package last updated on 16 Sep 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc