z-toolz

0.2.16 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i z-toolz

Weekly Downloads

0

Version

0.2.16

License

MIT

Unpacked Size

52 kB

Total Files

24

Last publish

Collaborators

  • zguillez