# design-tokenize

> For converting between sass variables and js/json

Latest version **1.0.6** (published 2017-09-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install design-tokenize
pnpm add design-tokenize
yarn add design-tokenize
bun add design-tokenize
```

Provides the command `design-tokenize`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2017-09-28 |
| First published | 2017-09-28 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Chris Wright |
| Maintainers | chriswrightdesign |

## Links

- npm: https://www.npmjs.com/package/design-tokenize
- Repository: https://github.com/chriswrightdesign/design-token-helper
- Homepage: https://github.com/chriswrightdesign/design-token-helper#readme
- Issues: https://github.com/chriswrightdesign/design-token-helper/issues
- npm.io page: https://npm.io/package/design-tokenize

## Recent versions

- 1.0.6 (latest) — 2017-09-28
- 1.0.5 — 2017-09-28
- 1.0.4 — 2017-09-28
- 1.0.3 — 2017-09-28
- 1.0.2 — 2017-09-28
- 1.0.1 — 2017-09-28
- 1.0.0 — 2017-09-28
- 0.1.0 — 2017-09-28
- 0.0.3 — 2017-09-28
- 0.0.2 — 2017-09-28

## README

# design-token-helper
For converting between sass variables and js/json, this conversion can go in either direction.

At this time, the file must only have variables.

Usage:
```javascript
"scripts": {
    "tokens": "design-tokenize -i /src/testFile.scss -e .js -o dist"
 },
```

Will output to a folder named dist
testFile.js

testFile.scss contents:

```scss
$myVariable: #333;
$anotherVariable: #ff0;
```

output:
```javascript
{
    "myVariable": "#333",
    "anotherVariable": "#ff0";
}
```

---
_Source: https://npm.io/package/design-tokenize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
