@design-token-validator/cli
v0.0.3
Published
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.
Maintainers
Readme
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-devUsage
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.
