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

generator-opent2t

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-opent2t

Yeoman generator for an Open Translators to Things translator

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
2
Weekly downloads
 
Created
Source

generator-opent2t NPM version

Yeoman generator for an Open Translators to Things translator. Gets you up and running quickly.

Installation

First, install Yeoman and generator-opent2t using npm (we assume you have pre-installed node.js).

$ npm install -g yo
$ npm install -g generator-opent2t

Then generate your new project:

$ yo opent2t

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |    Welcome to the Open   |
   `---------´   |   Translators to Things  |
    ( _´U`_ )    |        generator!        |
    /___A___\    '--------------------------'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? What is the human-readable name of the thing you are writing a translator for (e.g. Contoso Light)? Wink Light Bulb
? What is the node package name you want to use (e.g. translator-contoso-light)? translator-wink-light
? What schema does this translator implement? (Use arrow keys)
> org.OpenT2T.Sample.SuperPopular.Lamp
  org.OpenT2T.Sample.SuperPopular.Shade
  org.OpenT2T.Sample.SuperPopular.TemperatureSensor
? What onboarding model does this translator implement? (Use arrow keys)
  org.OpenT2T.Onboarding.BluetoothLE
  org.OpenT2T.Onboarding.Manual
  org.OpenT2T.Onboarding.OAuth2
> org.OpenT2T.Onboarding.WinkHub
  org.OpenT2T.Onboarding.ZWave
  Writing files...
  package.json generated. OpenT2T translators use the MIT license.
   create dist\js\thingTranslator.js
   create dist\js\manifest.xml
   create dist\js\package.json

The generator will ask you some questions, and based on your answers create a starter translator under dist/js. Move to your final desired location, and enjoy!

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Keywords

FAQs

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