utilify-it.js
v1.0.3
Published
A node package that adds cool functions for faster programming.
Downloads
6
Readme
Utilify-it.js
In this version I removed Neury, because it was not a good neural network and I will rewrite it in a new node module.
Utilify-it.js is a node module (we will call it util here) that adds util functions to JavaScript !
There is the list of them :
- Functions
- colorize(text) > Returns you text but with colors, you can only use it in console.
- random(min, max) > Returns a random Number between min and max
- randomColor() > Returns a random RGB color
- sigmoid(x) > Sigmoid function
- Classes
- JsonManager(path, saveInterval) > A class that manage you JSON by automatically saving it every
saveInterval
ms - ArrayExtended(...values) > An extended version of the classic Array in JS, it has now two new methods :
- ArrayExtended#dot(arr) > Multiply each value of an ArrayExtended with an other array with other values
- ArrayExtended#dotSigmoid(arr) > ArrayExtended.dot but with sigmoid at each multiplication
- N > A static class that have only one method yet, zeros(count, ), if number not passed, it will create an array with
count
zeros, if number is passed, zeros will be replaced withnumber
.