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

create-oc

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-oc - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

index.js
#!/usr/bin/env node
import prompts from 'prompts';
import fs from 'fs';
import path from 'node:path';
import fs from 'node:fs';
import { fileURLToPath } from 'node:url';

@@ -37,5 +39,10 @@ const { componentName, template } = await prompts([

const templateDir = path.resolve(
fileURLToPath(import.meta.url),
`../templates/${template}`
);
console.log();
console.log('Creating the template');
fs.cpSync(`./templates/${template}`, `./${componentName}`, {
fs.cpSync(templateDir, `./${componentName}`, {
recursive: true,

@@ -42,0 +49,0 @@ });

2

package.json
{
"name": "create-oc",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",

@@ -5,0 +5,0 @@ "description": "",

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