# gf

> factory class for your app.

Latest version **0.0.1** (published 2012-11-03) · 0 weekly downloads

## Install

```sh
npm install gf
pnpm add gf
yarn add gf
bun add gf
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-11-03 |
| First published | 2012-11-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.9 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aleafs Zhang |
| Maintainers | aleafs |
| Keywords | globals, factory, global variables |

## Links

- npm: https://www.npmjs.com/package/gf
- Homepage: git@github.com:aleafs/globals.git
- npm.io page: https://npm.io/package/gf

## Recent versions

- 0.0.1 (latest) — 2012-11-03

## README

[![Build Status](https://secure.travis-ci.org/aleafs/gf.png?branch=master)](http://travis-ci.org/aleafs/gf)

## About

**G**lobal variables **F**actory module.

## Install

```bash
$ npm install gf
```

## Usage

* in startup script:

```javascript

var factory = require('gf').instance();

factory.set('mysql', mysql);
factory.set('errorlog', errorlog);

```

* in any other scripts:

```javascript
var factory = require('gf').instance();

factory.get('mysql').query('SHOW DATABASES', function (e, data) {
  console.log(data);
});
```

## License

MIT

---
_Source: https://npm.io/package/gf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
