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

homey-lib

Package Overview
Dependencies
Maintainers
2
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homey-lib

Library for Homey

  • 1.0.30
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
565
decreased by-4.4%
Maintainers
2
Weekly downloads
 
Created
Source

homey-lib

This is a library for Homey (development kit, command line tools etc).

Example

// require the module
var lib = require('homey-lib');

// create an App instance
var app = new lib.App("/path/to/my/app");

// validate the app
var valid = app.validate();
console.log(valid);

/*
app.validate() returns either:
	{
		success: true
	}
or:
	{
		success: false,
		errors: [ "missing ..." ]
	}
*/

Methods

App( app_path )

Create a new App instance.

  • app_path (string): A path to the folder where the app is located
.validate()

Validate an app, and check for errors, missing files etc.

returns: An object with success: true|false, and a string array errors if validation failed.

.create( opts )

TODO: Creates a new app, based on a template

  • opts (object): Required values: id, name. Optional values: description, version, images.
.addDriver( opts )

TODO:

.addSpeech( opts )

TODO:

.addDriver( opts )

TODO:

.addApi( opts )

TODO:

.addSettings( opts )

TODO:

FAQs

Package last updated on 21 Feb 2017

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