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

react-create-component

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

react-create-component - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

templates/default/{{name}}.stories.js

2

index.js

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

const file = fs.readFileSync(`${templateDir}/${templateFile}`, 'utf8');
const fileWithComponentName = file.replace(/{{name}}/g, componentName+1);
const fileWithComponentName = file.replace(/{{name}}/g, componentName);

@@ -50,0 +50,0 @@ fs.writeFileSync(`${dir}/${componentName}/${fileName}`, fileWithComponentName)

{
"name": "react-create-component",
"version": "0.0.1",
"version": "0.0.2",
"description": "Create react components based on templates",

@@ -8,2 +8,12 @@ "main": "index.js",

"license": "MIT",
"keywords": [
"react",
"reactjs",
"scaffold",
"generator",
"styled",
"components",
"jest",
"storybook"
],
"repository": {

@@ -10,0 +20,0 @@ "type": "git",

# React Create Component.
A command line component generator with a React, Jest, Styled-components template component.
A command line component generator with a React, Jest, Styled-components and storybook template component.
## Installing globally with npm-link
## Installing
### Installing globally with npm
- `sudo npm install react-create-component -g`
### Installing globally with npm-link
- clone the project
- `git clone https://github.com/andre-araujo/react-create-component.git`
- `git clone https://github.com/andre-araujo/react-create--component.git`
- navigate to project folder

@@ -14,2 +21,3 @@ - `cd /react-create-component`

## Usage

@@ -29,4 +37,5 @@

/ComponentName.spec.js
/ComponentName.stories.js
/styles.js
/index.js
```
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