mockeroni

0.3.4 • Public • Published

mockeroni mockeroni

Build Status Release

A recipe for easy mocks.

Installation + Usage

As an npm module:

npm i -D mockeroni

As a CLI util

npm i -g mockeroni

Mockeroni can also be accessed from this heroku link: https://mockeroni.herokuapp.com/

API and Routes

By default, mockeroni will open up a WebSocket at port 8080 (i.e. ws://mockeroni.herokuapp.com:8080), and return the following shape:

{  
  ratesArray<{ idstring, timenumber, ratenumber }>,  
  graph{    
    nodesArray<{ idnumber, labelstring, species'sink' | 'source' | 'firewall'}>    
    edgesArray<{ tonumber, fromnumber }>  
  }
}

in json format. The size of each array can vary. It returns this data at a default of 1 second intervals.

Readme

Keywords

Package Sidebar

Install

npm i mockeroni

Weekly Downloads

0

Version

0.3.4

License

MIT

Last publish

Collaborators

  • emmaramirez