Pinoccio Node.js module
JavaScript Shell
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin adding changes to bridge to branch Nov 25, 2014
example fixing pnpid error May 27, 2014
lib replace shuffle-array dependency with array-shuffle dependency Mar 30, 2016
test
.gitignore
.npmignore
.travis.yml removing 11 because native deps are broken Mar 26, 2014
CHANGELOG updating changelog with serial notes Nov 25, 2014
LICENSE Initial commit Dec 30, 2013
README.md adding help command! fixing helps Apr 14, 2014
browser.js updating for loginButtons and auth Apr 21, 2014
build.sh removing _version.js breaks browserify when included as a module Apr 23, 2014
example.js
index.js 0.1.35 fixing reconnecting sync streams Jan 23, 2015
package.json 0.1.40 May 14, 2016

README.md

Build Status

pinoccio

Pinoccio Node.js, CLI and Browser api!

browser or server

var pinoccio = require('pinoccio'); // works in browserify and server side

// create an api instance with default options
var api = pinoccio(logintoken);// in the browser the token may be read from a pinoccio_id cookie,

api.rest({url:"/v1/troops"},function(error,data){
  if(error) return console.log('oh no. i got an error getting my troops!',error);
  console.log('troop data',data);
})

cli

pinoccio help rest
pinoccio rest get v1/troops

API DOCS

https://docs.pinocc.io/api.html

##INSTALL

as a node library

npm install --save pinoccio

for cli

npm install -g pinoccio

in the browser you can use the hosted version.

<script src="https://api.pinocc.io/pinoccio.js"></script>
<script>
 var api = pinoccioAPI();
 // use the api
</script>

or serve the browserified (compiled) file published with the module from your own web server.

./node_modules/pinoccio/pinoccio-api.js