okitchen v0.1.1
Okitchen
This module provides a warpper around fundamental function used in server, such as initiation, SQL actions and logger.
note: this module uses promise for all functions. callback is not supported by this module.
Warning: This module is highly biased towards my own preference. Read the documentation carefully before you use it. It is recommended to fork from this and to tweak it for your own convenience.
Design
The functions include:
- configuration management
- database actions
- logger
- hash and jwt
- commonly used utilities by a website
Usage
This module exports a core object to access all above functionalities.
Before any function is called the init(prop) function needs to be called to initiate the database/files. Any use of this module without calling init(prop) first is not guaranteed to work.
Contribute
Anyone is welcomed to submit pull requests or open issues.
It is recommended to run npm test
after modification. Remember, the test script itself may be buggy.