OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
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
- Sponsor on Github
- Become a Patreon
- Support on Open Collective
- Contribution Guide
Documentation
See the Official Manuals for articles, tutorials and guides.