Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

z-toolz

npm version Build Status Installs Gitter

Zguillez | Guillermo de la Iglesia

Tools for NodeJS development

Getting Started

Install

npm i z-toolz --save-dev
yarn add 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