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

@pixelblock/cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixelblock/cli - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

28

lib/installer.js

@@ -17,10 +17,12 @@ #!/usr/bin/env node

.action(async () => {
const inquirer = await getInquirer();
inquirer.prompt([
{
type: 'input',
name: 'component',
message: 'Which component do you want to install?'
}
]).then(answers => {
try {
const inquirer = await getInquirer();
const answers = await inquirer.prompt([
{
type: 'input',
name: 'component',
message: 'Which component do you want to install?'
}
]);
const component = answers.component;

@@ -33,5 +35,5 @@ const templatesDir = path.join(__dirname, '../templates');

if (fs.existsSync(sourceFile)) {
fs.ensureDirSync(destinationDir);
fs.copyFileSync(sourceFile, destinationFile);
if (await fs.pathExists(sourceFile)) {
await fs.ensureDir(destinationDir);
await fs.copyFile(sourceFile, destinationFile);
console.log(`Component ${component} installed successfully.`);

@@ -41,7 +43,7 @@ } else {

}
}).catch(error => {
} catch (error) {
console.error('Error:', error);
});
}
});
program.parse(process.argv);
{
"name": "@pixelblock/cli",
"version": "0.0.7",
"version": "0.0.8",
"main": "index.js",

@@ -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