Tools for NodeJS development
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
src
.esdoc.json
.eslintrc.js
.gitignore
.travis.yml
.zconfig
README.md
index-cli.js
index.js
package.json
yarn.lock

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