
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Compiles YAML design tokens into usable project variables.

$ npm install --save tay
Add to npm package.json:
"scripts": {
"tay": "tay --input tokens.yaml --output public/styles/tokens.css"
}
Then npm run tay. Additionally, if you use npm start/npm build:
"scripts": {
"prestart": "npm run tay",
"prebuild": "npm run tay"
}
tay will then run when you start or build the project.
Tokens can be output in the following formats:
-v, --version output the version number
-i, --input <inputFile> Input YAML file
-o, --output <outputFile> Output file
-w, --watch Watch input for changes
-h, --help output usage information
/src/tokens.yaml
spacing:
large: 2rem
medium: 1rem
small: 0.5rem
radius:
large: 0.5rem
medium: 0.25rem
small: 0.125rem
Run:
$ tay -i /src/tokens.yaml -o /public/tokens.css -o /src/tokens/tokens.js
/public/tokens.css
:root {
--spacing-large: 2rem;
--spacing-medium: 1rem;
--spacing-small: 0.5rem;
--radius-large: 0.5rem;
--radius-medium: 0.25rem;
--radius-small: 0.125rem;
}
/src/tokens/tokens.js
export const spacingLarge = '2rem';
export const spacingMedium = '1rem';
export const spacingSmall = '0.5rem';
export const radiusLarge = '0.5rem';
export const radiusMedium = '0.25rem';
export const radiusSmall = '0.125rem';
This project aims for 100% test coverage, and is tested on CI with every version of Node >7.
$ npm test
Code style is checked using ESLint/Prettier.
$ npm run lint
Tay uses semver for versioning. For the versions available, see the tags on this repository.
Maintained by @dan1elhughes.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Design token builder
The npm package tay receives a total of 4 weekly downloads. As such, tay popularity was classified as not popular.
We found that tay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.