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

pixela-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixela-node

Pixela API Client for nodejs

npmnpm
Version
0.0.3
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

pixela-node

Pixela API Client for Node.js

npm version

Installation

via npm

$ npm install --save pixela-node

via yarn

$ yarn add pixela-node

Usage

import Client from 'pixela-node'
const client = new Client()

client.username = 'your_username'
client.token = 'your_token'

// Create Graph
client
  .createGraph({
    id: 'kintore',
    name: 'kintore',
    unit: 'commit',
    type: 'int',
    color: 'shibafu'
  })
  .then(res => console.log(res.data))
  .catch(e => console.log(e.response.data))

// Get Graphs
client.getGraphs().then(res => console.log(res.data))

// Increment Pixel
client.incrementPixcel('kintore').then(res => {
  console.log(res.data)
})

console.log(client.getGraphUrl('kintore'))

FAQs

Package last updated on 15 Oct 2018

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