@kapitchi/bb-service

Abstract service implementation

Stats

StarsIssuesVersionUpdatedCreatedSize
@kapitchi/bb-service
111.5.03 years ago4 years agoMinified + gzip package size for @kapitchi/bb-service in KB

Readme

bb-service

Build Status

TODO

Abstract service implementation with the following spec:

  • service options: constructor first parameter is immutable plain object
  • service public methods: always async so they can be called either locally (when installed as npm package) or remotely (e.g. using seneca) without a consumer refactoring, accepts only one parameter plain object and always return a plain object.
  • private methods: should be prefixed with "_"
  • implements setLogger method - logger API: { log: Function }

Installation

npm install @kapitchi/bb-service

Usage

TODO

For ES5 compatible implementation use require('@kapitchi/bb-service/es5').

API

{{>main}}

Development

Run the command below to builds es5 folder and README.md.

npm run build

Tests

npm test

Contribute

Please feel free to submit an issue/PR or contact me at matus.zeman@gmail.com.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.