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

connect-b2g

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-b2g

Connect middleware that delivers an application manifest compatible with Mozilla's Open Web Apps initiative

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

connect-b2g

Build Status

Abstract

Connect middleware that delivers an application manifest compatible with Mozilla's Open Web Apps initiative

Installation

npm install connect-b2g

More

Open Web Apps are web apps that are installable on Mozilla's Boot 2 Gecko Operating System.

Any website can be installed as an app on B2G but it needs to provide a manifest file.

The manifest is a text file containing a json document. It can have any name but must have the extension .webapp.

It will be requested from the webroot by the client device, much like a favicon.

Example: http://domain.com/manifest.webapp

To find out more about creating Boot to Gecko Apps go to the Mozilla Developer Network

This simple connect middleware delivers the mainfest from a given file path.

This middleware does not enforce the manifest schema, format or content. Read about these topics here.

Usage

Much like any other connect middleware

var connect = require('connect');
var b2g = require('connect-b2g');

var app = connect()
	.use( b2g( 'path/to/manifest.webapp' ) )
	.listen(3000);

Running tests

To run tests you need to install mocha and request.

sudo npm install -g mocha
npm install request

mocha 

Roadmap

This project is intended as a utility middleware for B2G app developers.

As such, whenever new features are added to the specs, they will be implemented here.

Feel free to send me feedback and to contribute to this project.

Licence

WTFPL

FAQs

Package last updated on 26 Jun 2012

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