Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fxos-lib-mozapps

0.0.1 • Public • Published

Firefox OS MozApps

This is a promise based library which wraps mozApp methods to make app developer's lives easier. Some things that this library takes care of:

  • Proper icon selection.
  • Icon text extraction from locale.
  • Entry point normalization.

Usage

Install the files into your project:

bower install KevinGrandon/firefoxos-mozapps

Include the script (if using bower install):

<script defer src="bower_components/firefoxos-mozapps/fxos_apps.js"></script>

Getting app icons:

FxosApps.all().then(icons => {
    // Do something with icons.

    // Gets the icon image.
    console.log(icon.icon);

    // Launch the application:
    // icon.launch();
});

Contributing

Run gulp to build and package everything into the dist/ folder.

Keywords

none

install

npm i fxos-lib-mozapps

Downloadsweekly downloads

0

version

0.0.1

license

MPL

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability