Skip to content

os-js/osjs-example-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OS.js Logo

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