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

@ilnur/frontend-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ilnur/frontend-cli - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

12

bin/create-component.js

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

const pkg = require('../package.json');
const packageJson = require(path.resolve(process.cwd(), 'package.json'))
const packageJson = require(path.resolve(process.cwd(), 'package.json'));
let componentName;

@@ -63,3 +63,3 @@

path.join(root, 'package.json'),
JSON.stringify(packageJson, null, 2)
`${JSON.stringify(packageJson, null, 2)}\n`
);

@@ -74,3 +74,3 @@

path.join(root, cssFileName),
`.container {}`
`.container {}\n`
);

@@ -97,3 +97,3 @@ cssImport = `import styles from './${cssFileName}';`;

fs.writeFileSync(path.join(root, `${name}.jsx`), componentTmpl);
fs.writeFileSync(path.join(root, `${name}.jsx`), `${componentTmpl}\n`);
} else {

@@ -110,2 +110,4 @@ const componentTmpl = stripIndent`

state = {};
render() {

@@ -122,3 +124,3 @@ return (

fs.writeFileSync(path.join(root, `${name}.jsx`), componentTmpl);
fs.writeFileSync(path.join(root, `${name}.jsx`), `${componentTmpl}\n`);
}

@@ -125,0 +127,0 @@

{
"name": "@ilnur/frontend-cli",
"version": "0.2.0",
"version": "0.3.0",
"description": "Reducing frontend developing daily routine",

@@ -5,0 +5,0 @@ "bin": {

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