Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including securitas-direct with all npm packages installed. Try it out:

var securitasDirect = require("securitas-direct")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

securitas-direct v1.0.0

A module for reading and changing status of Securitas Direct devices.

node-securitas-direct

A module for reading and changing status of Securitas Direct devices.

Legal Disclaimer

This software is not affiliated with Securitas Direct and the developers take no legal responsibility for the functionality or security of your alarms and devices.

Installation

$ npm install securitas-direct --save

Usage

const SecuritasDirect = require('securitas-direct');

const client = new SecuritasDirect('username', 'password', 'es');

client.login()
  .then(() => client.getInstallation('1234567'))
  .then(installation => {
    console.log('INSTALLATION:', installation);
  })
  .catch(error => {
    console.error('ERROR:', error);
  });
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free