gf

0.0.1 • Public • Published

Build Status

About

Global variables Factory module.

Install

$ npm install gf

Usage

  • in startup script:
 
var factory = require('gf').instance();
 
factory.set('mysql', mysql);
factory.set('errorlog', errorlog);
 
  • in any other scripts:
var factory = require('gf').instance();
 
factory.get('mysql').query('SHOW DATABASES', function (e, data) {
  console.log(data);
});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i gf

Weekly Downloads

4

Version

0.0.1

License

none

Last publish

Collaborators

  • aleafs