@zguillez/z-toolz
v0.3.29
Published
Tools for NodeJS development
Downloads
1
Readme
z-toolz
Zguillez | Guillermo de la Iglesia
Tools for NodeJS development
Getting Started
Install
npm i @zguillez/z-toolz --save-dev
yarn add @zguillez/z-toolz --dev
Usage
const ztoolz = require('z-toolz');
CLI Usage
"scripts": {
"test": "ztoolz"
}
Update package version
ztoolz.version();
ztoolz.version('minor');
ztoolz.version('major');
ztoolz --version
ztoolz --version --minor
ztoolz --version --major
DataBase query
Database configuration file: .zconfig
{
"database": {
"host": "",
"username": "",
"password": "",
"database": ""
}
}
ztoolz.database('SELECT * FROM table');
ztoolz.database(['SELECT * FROM table1', 'SELECT * FROM table2'], true);
ztoolz.database('SELECT * FROM table', false).then((data) => {
console.log(data);
});
});
Contributing and issues
Contributors are welcome, please fork and send pull requests! If you have any ideas on how to make this project better then please submit an issue or send me an email.
License
©2018 Zguillez.io
Original code licensed under MIT Open Source projects used within this project retain their original licenses.
Changelog
v0.2.0 (November 20, 2018)
- Database module
v0.1.0 (January 26, 2018)
- Initial commit