Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inhabit-api

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inhabit-api

Inhabit API Hepler

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

inhabit-api Build Status Codecov

Installation

npm

NPM

First, install inhabit-api via npm command-line, as follows:

npm install --save-dev inhabit-api

Next, you must require a module and instantiate a class:

var InhabitAPI = require('inhabit-api');

Bower

Install inhabit-api package:

bower install --save inhabit-api

Then include a <script> tag like that:

<script src="bower_components/inhabit-api/dist/InhabitAPI.bower.js"></script>

Although its use is arguable. :evil:

Usage

// "info" must be an object with "id" property, which specifies module ID
var api = InhabitAPI.create(info);

// Log a "Module Start" analytics event
api.analytics.start();

// Log an "Interaction" analytics event
api.analytics.interaction();

// Log an "Module End" analytics event
api.analytics.end();

// Log an "Error"
api.analytics.error();

License

COPYRIGHT (c) 2016 rand0me

BSD ISC License

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Contribution

Be free to create pull requests

FAQs

Package last updated on 18 Oct 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc