Socket
Book a DemoInstallSign in
Socket

pinoccio

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinoccio

pinoccio api client. http://pinocc.io

latest
Source
npmnpm
Version
0.1.40
Version published
Weekly downloads
2
-96.3%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

pinoccio

FAQs

Package last updated on 14 May 2016

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