Socket
Socket
Sign inDemoInstall

frontapp-node

Package Overview
Dependencies
72
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    frontapp-node

FrontApp Node.js API Wrapper


Version published
Weekly downloads
5
Maintainers
1
Install size
5.71 MB
Created
Weekly downloads
 

Readme

Source

frontapp

FrontApp Node.js API Wrapper

Installation

npm install frontapp-node

Testing

npm test

Running the code locally

Compile using babel:

gulp babel

Require FrontApp:

var FrontApp = require('./dist/index');

Usage

Require FrontApp:

var FrontApp = require('frontapp-node');

Create a client:

Using Personal Access Tokens
var client = new FrontApp.Client('token');

Callbacks

This client library supports two kinds of callbacks:

client.analytics.get({}, function (err, r) {
  // err is an error response object, or null
  // r is a successful response object, or null
});

Promises

This client library also supports using Promises instead of callbacks:

client.analytics.get({}).then(function (r) {
  // ...
});

Analytics

// To get statistics about activities happening in Front, you need to requests the correspondig metrics of the analytics.
client.analytics.get({
  start: '',
  end: '',
  metrics: []
}, callback);

Keywords

FAQs

Last updated on 03 Dec 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc