toolsplus

3.12.16 • Public • Published

Functions++

About

Functions++ is a library for Node.js that add all kind of functions and stuff.

Functions

  • store() Creates a new storage place.

  • storeIn() Store informations inside the storage place.

  • storeOut() Get the informations stored in the storage place.

  • calculate() Calculate something in a string or not.

  • exeCmd() Execute a command in the console.

  • prompt() Prompt something in the console.

  • freeze() Freeze a variable like a constant.

  • char() Get a char by using his index.

  • pass() A function that does nothing.

  • loop() A loop function that helps making loop more clear.

  • numBool() Make the number 0 or 1 to a boolean (The number 0 is false and 1 true).

  • boolNum() Make the booleans to a number (false is 0 and true is 1).

  • restoreNum() To make a number go back to 0.

  • center() Get the center of something (Arrays, Numbers, Strings).

  • readFile() Read a file (Get it's value).

  • writeFile() Write a file.

  • wait() Wait a number of time.

  • regval() Evaluate code that matches the regex.


  • .color() Change the color of some text.

  • .remove() Remove something from a string.

  • .removeAll() Remove all of something from a string.

  • .removeComments() Remove a specified type of comment from a string.

  • .removeChars() Removes all the characters from a string.

  • .removeNumbers() Removes all the numbers from a string.

  • .uniq() Removes all the duplicated values from an Array.

  • .getBetween Get between two values.

Package Sidebar

Install

npm i toolsplus

Weekly Downloads

11

Version

3.12.16

License

ISC

Unpacked Size

12.2 kB

Total Files

29

Last publish

Collaborators

  • sparkymathis