New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

npu

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npu

NPM package utils (NPU) for fast creating examples, static servers, deployment to surge, etc

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

Create React apps fast with no Webpack

Npm Version Month Downloads Npm Licence

Features

  • Create React examples for your packages in two steps

Installation

npm install -g npu

Install peer dependencies in project root:

npm install react react-dom

Example

./lib/index.js

const MyComponent = () => (
  <div>My Component</div>
)

module.exports = MyComponent

./npu.config.js

module.exports = {
  app: './example/App.js'
}

./example/App.js

import React from 'react'
import MyComponent from '../lib'

export default class App extends React.Component {
  render() {
    return (
      <div>
        Example:
        <MyComponent />
      </div>
    )
  }
}

That's it!

Now you can make npu -d to run example in dev mode, or npu -o ./build to build app.

TODO

  • Deployment to surge.sh

Keywords

npm

FAQs

Package last updated on 09 Dec 2017

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