@design-token-validator/cli

0.0.3 • Public • Published

Design Token Validator CLI

This is a Command-Line Interface (CLI) tool to validate Design Tokens against W3C standards. It allows you to check the structure and correctness of your JSON-based design token files, ensuring they meet the expected standards.

Features

  • Validate JSON files: Check if your design tokens are structured correctly.
  • W3C Compliance: Ensures your tokens meet the W3C design token standards.
  • Easy-to-use CLI: Simple commands to validate design token files directly from the terminal.

Installation

To use the design-token-validator-cli tool, you need to install it in your project. You can install it via npm.

Using npm:

npm install design-token-validator-cli --save-dev

Usage

Once installed, you can use the design-token-validator-cli tool in your terminal. The CLI currently supports the validate command, which checks if a design token JSON file is valid.

Command: validate

This command checks the validity of a design token JSON file.

npx design-token-validator-cli validate <file-path>

Arguments

  • : The path to the design token JSON file that you want to validate.

Package Sidebar

Install

npm i @design-token-validator/cli

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

6.4 kB

Total Files

6

Last publish

Collaborators

  • artursopelnik