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

react-autocomplete-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

react-autocomplete-cli

CLI tool to generate autocompletions for react components

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React autocomplete CLI

CLI to automatically generate autocompletions for react components

Usage:

  1. Create .importjs.json file and specify your component paths
// .importjs.json example
{
  "lookupPaths": [
    "node_modules/react-toolbox/components/**/*.js",
    "app/src/components"
  ]
}
  1. Run the CLI in the root of your project or via NPM scripts like so:
// package.json
"scripts": {
  "generate": "rc-autocomplete"
},
  1. npm run generate will generate a completions.json file in the root of your project. This completions.json tell the atom editor how to handle autocompletions.

You can .gitignore this file or commit for others using the project to use (provided they have installed the atom plugin)

Alternative setup

Or if you don't want to setup .importjs.json you can pass the src of your components to the CLI like so:

// package.json
"scripts": {
  "generate": "rc-autocomplete --src 'node_modules/react-toolbox/components/**/*.js'"
},

Keywords

FAQs

Package last updated on 08 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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