Package Exports
- daansmodule
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (daansmodule) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Daan's Module
Installation
npm install daansmoduleUsage
const daansmodule = require('daansmodule');
//CONSOLE LOGS (Makes A colored log in the console)
daansmodule.warn('WARNING TEXT'); //warn
daansmodule.error('ERROR TEXT'); // error
daansmodule.help('HELP TEXT'); //help
daansmodule.info('INFO TEXT'); //info
//MATHAMATICS (RETURNS A NUMBER)
console.log(daansmodule.wortel(9)); //Squareroot
console.log(daansmodule.kwadraat(3)); //Square
console.log(daansmodule.machten(3, 3)); //pow (num to pow, pow number)
// OR
var wortel = daansmodule.wortel(9); //Squareroot
var kwadraat = daansmodule.kwadraat(3); //Square
var macht = daansmodule.machten(3, 3); //Pow (Num to pow, pow number)
Disabling Colors
If you want to run without the colors use the following arguments:
node myapp.js --no-color