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

add-component

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-component - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

.npmignore

5

index.js

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

.option('-r, --redux', 'Create Redux Store')
.option('-s, --style', `Add ${componentName}.css`)
.option('-c, --css', `Add ${componentName}.css`)
.option('-d, --directory <directory>', 'Use directory')
.parse(process.argv)

@@ -33,3 +34,3 @@

function createComponent (name) {
const rootDirectory = path.resolve(name)
const rootDirectory = program.directory ? path.join(path.resolve(program.directory), name) : path.resolve(name)
const hasCSS = program.css

@@ -36,0 +37,0 @@ const makeFn = program.fn

2

package.json
{
"name": "add-component",
"version": "2.2.0",
"version": "2.3.0",
"description": "Create React Component CLI",

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

@@ -130,5 +130,12 @@ # add-component

## Additional options
```
# Define directory with components
$ add-react-component -d src Example
```
## License
MIT © [Jack Hanford](http://jackhanford.com)
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