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

node-power

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-power

Node.js library for creating interfaces using websockets and React.js

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Node Power

Node.js library for fully automatically generating and connecting web interfaces using Express REST API, Socket.io and React.js with a simple schema setup.

Example Setup:

const NodePower = require('node-power');

const schema = {title:'Test Power',pages:{'/':[
  {text:'Node Power Test App'},
  {link:['Tommy','/tommy']},
  {input:['Name',(name)=>{console.log('name',name)}]}
],'/tommy':[
  {button:['name',()=>{console.log('button pressed')}]},
  {output:['age',(send)=>{
    setInterval(()=>{send('pingus')},1000);
  }]}
]}};

const app = new NodePower(schema);
app.run(4000);

FAQs

Package last updated on 25 Sep 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