Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figma-export/output-components-as-es6

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/output-components-as-es6 - npm Package Compare versions

Comparing version 0.0.1-alpha.4 to 0.0.1-alpha.5

index.test.js

13

index.js

@@ -9,8 +9,3 @@ const fs = require('fs');

module.exports = (options) => {
if (!fs.existsSync(options.output)) {
const err = new Error(`Folder '${options.output}' doesn't exist`);
throw err;
}
module.exports = ({ output }) => {
return async (pages) => {

@@ -28,7 +23,5 @@ let code = '';

fs.writeFile(path.resolve(options.output, 'figma-components.js'), code,
(err) => {
if (err) throw err;
});
const filePath = path.resolve(output, 'figma-components.js');
fs.writeFileSync(filePath, code);
};
};
{
"name": "@figma-export/output-components-as-es6",
"version": "0.0.1-alpha.4",
"version": "0.0.1-alpha.5",
"description": "Outputter for @figma-export that exports components in javascript file",

@@ -16,3 +16,3 @@ "main": "index.js",

},
"gitHead": "9a33a26c15abdb56385cb4430c5dd81218e7f75f"
"gitHead": "50c474ee19e7b9e91a6cb941bc22f883181cba6d"
}
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