to-json-list

This parser helps you pull design tokens in JSON within an iterable array structure.

Interface

interface parser {
  name: "to-json-list";
  output:
    | {
        type: "file";
        filePath: string;
      }
    | { type: "JSON" };
  options?: {
    stringPathSeparator?: string;
  };
}

Options

Parameter
Required
Type
Default
Description

stringPathSeparator

false

string

"."

Override the separator character used to build the string path property.

Return type

The parser produces a custom data structure representing the flatten token tree.

Basic usage

Last updated

Was this helpful?