apeman-service-base
Abstract service
Last updated a year ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install apeman-service-base 
SYNC missed versions from official npm registry.

apeman-service-base

Build Status npm Version JS Standard

Abstract service

Installation

$ npm install apeman-service-base --save

Usage

#!/usr/bin/env node

'use strict'

const apemanstore = require('apemanstore')
const { ApService } = require('apeman-service-base')

{
  let store = apemanstore()
  let service = new ApService(store)

  service.set('foo', 'bar')
  console.log(service.get('foo'))
}

API

apeman-service-base@2.0.0

Abstract service

Functions

create(args) -> ApService

Create the service instance

Param Type Description
args *

ApService Class

Abstract service

new ApService()

Constructor of ApService class

License

This software is released under the MIT License.

Links


Copyright 2014 - 2017 © taobao.org |