0.3.0 • Published 1 year ago

@design-token/inspector-core v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Design Token Inspector

Design Token Inspector ouputs a list of changes between two Design Token schemas. Every change is precisely explained and marked as breaking, non-breaking or dangerous.

Features

Major features:

  • Compares schemas
  • Finds breaking or dangerous changes
  • Validates documents against a schema

Design Token Inspector has a CLI and also a programatic API, so you can use it however you want to and even build tools on top of it.

Installation

yarn add @design-token/inspector-core

Examples

import { diff, validate, Change, InvalidDocument } from '@design-token/inspector-core';

// diff
const changes: Change[] = diff(schemaA, schemaB);
// validate
const invalid: InvalidDocument[] = validate(documentsGlob, schema);
// ...

License

MIT © Mirahi SRL