token-transformer-presets
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Token Transformer CLI Presets

NPM License NPM Downloads

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"

Package Sidebar

Install

npm i token-transformer-presets

Weekly Downloads

3

Version

0.0.6

License

MIT

Unpacked Size

51 kB

Total Files

48

Last publish

Collaborators

  • stegano