1.0.3 • Published 4 years ago

@osjs/example-provider v1.0.3

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
4 years ago

OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.

Support Support Donate Donate Community

OS.js Example Service Provider

This is the Example Service Provdider for OS.js

Installation

npm install @osjs/example-provider

Usage

In you startup procedure, simply import and register:

Note: This example is written using ESM. Node does not support this out of the box, so assume this is a client scipt.

import {ExampleServiceProvider} from '@osjs/example-provider'; // You want your package name here

// ...

osjs.register(ExampleServiceProvider)

// ...

Then you can use core.make('example/instance') or core.make('example/singleton') (as provided by this example).

Contribution

Documentation

See the Official Manuals for articles, tutorials and guides.

Links