New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

token-transformer

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

token-transformer - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

file.json

8

index.js

@@ -16,3 +16,5 @@ #!/usr/bin/env node

function transform() {
const [input, output, ...sets] = process.argv.slice(2);
const [input, output, rawSets, rawExcludes] = process.argv.slice(2);
const sets = rawSets.split(',')
const excludes = rawExcludes.split(',')
if (!input) {

@@ -33,5 +35,5 @@ process.stdout.write(`ERROR: Specify an input first (e.g. tokens.json)`);

const parsed = JSON.parse(tokens);
const transformed = transformTokens(parsed, sets);
const transformed = transformTokens(parsed, sets, excludes);
writeFile(output, JSON.stringify(transformed, null, 2), () => {
process.stdout.write(`Transformed tokens from ${input} to ${output}, using sets ${sets.join(', ')}`);
process.stdout.write(`Transformed tokens from ${input} to ${output}, using sets ${sets.join(', ')}, excluding ${excludes.join(', ')}`);
});

@@ -38,0 +40,0 @@ } else {

{
"name": "token-transformer",
"version": "0.0.9",
"description": "A utility that transforms tokens from Figma Tokens to a format that is readable by Style Dictionary.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "six7",
"license": "ISC",
"bin": "index.js"
}
"name": "token-transformer",
"version": "0.0.10",
"description": "A utility that transforms tokens from Figma Tokens to a format that is readable by Style Dictionary.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "six7",
"license": "ISC",
"bin": "index.js"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc