Socket
Socket
Sign inDemoInstall

create-npm-library

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    create-npm-library

__


Version published
Maintainers
1
Install size
1.80 MB
Created

Readme

Source

create-react-library

Boilerplate generator for creating npm packages

To generate boilerplate

React component

npx create-npm-library react-component -o directory --name package-name

Vanilla js library

npx create-npm-library vanilla -o directory --name package-name

To publish your package

  1. Log in to your account. yarn login # Enter your credentials

  2. Publish! yarn publish --access=public

To test your package locally

  1. In your package directory npm link

  2. In your project root npm link {{package-name}}

FAQs

Last updated on 17 May 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc