Skip to content

tunnckoCore/app-base

Repository files navigation

Beating the boilerplate with elegance. Basic and common methods for your node.js application.

code climate standard code style travis build status coverage status dependency status

That's temp fork of app-base

If you want to install it use the user/repo pattern that npm provides.

npm i tunnckoCore/app-base --save

Usage

For more use-cases see the tests

const AppBase = require('app-base').AppBase

// or just use the instance
const app = require('app-base')

app.define('hello', function helloWorld (foo, world) {
  console.log('Hello', foo, world)
})
app.hello('bar', 'qux') // => 'Hello bar qux'

Instance methods

Using following libraries, they internally pass this (the instance) as first argument.

console.log(app)           // => AppBase { AppBase: [Function: AppBase] }
console.log(app.delegate)  // => [Function: delegateProperties]
console.log(app.define)    // => [Function: defineProperty]

Static methods

Using following libraries:

console.log(AppBase)           // => [Function: AppBase]
console.log(AppBase.delegate)  // => [Function: delegate]
console.log(AppBase.define)    // => [Function: defineProperty]
console.log(AppBase.extend)    // => [Function: extend]

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

tunnckoCore.tk keybase tunnckoCore tunnckoCore npm tunnckoCore twitter tunnckoCore github

About

(WIP / local usage) Beating the boilerplate with elegance. Basic and common methods for your node.js application.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published