token-transformer-presets
v0.0.6
Published
`@stegano/token-transformer` official presets.
Downloads
1
Maintainers
Readme
Token Transformer CLI Presets
token-transformer-cli
official presets. 🥳
Installation
The easiest way to install token-transformer-presets
is with npm.
npm install token-transformer-presets token-transformer-cli -g # To use `token-transformer-presets`, you also need to install `token-transformer-cli`
Quick Starts
Get started quickly with token-transformer-presets
Convert Zeplin design token to a CSS file.
tt run -p token-transformer-presets/zeplin-css -t <tokenFilePath>
Convert Zeplin design token to a SCSS file.
tt run -p token-transformer-presets/zeplin-scss -t <tokenFilePath>
Parsing JWT tokens and displaying them on the screen.
tt run <token> -p token-transformer-presets/jwt-viewer # or `tt -p token-transformer-presets/jwt-viewer` -t <tokenFilePath>
Quick Setting Example
This configuration sets Token Transformer CLI to run with jwt-viewer
preset as the default.
Create a dedicated CLI configuration file.
cd ~ && tt init --cli
Save the
jwt-viewer
preset configuration.tt config set -n presets -v token-transformer-presets/jwt-viewer
Runt Token Transformer CLI with
jwt-viewer
tt run "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"