1.1.28 • Published 4 years ago

fnct v1.1.28

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Functions.js

Functions.js is a javascript library for NodeJS and HTML. It is a compilation of various functions and classes that are very useful.

Installation

NodeJS

Use Node Package Manager to install

npm install fnct

Then add this line to your index.js file

const F = require("fnct");

HTML / Browser

Add this line into your index.html file

<script type="text/javascript" src="https://fnctjs.github.io/index.js"></script>

Alternatively, just download this and add this line into your index.html file

<script type="text/javascript" src="./functions.js"></script>

Usage

const F = require("fnct"); // NodeJS (HTML does not need this)

"Random Number: {number}".format({
  number: F.randomInt(2, 6)
}); // Formats the string with a random number between 2 and 6

(async () => {
  await F.sleep(1); // Sleeps for 1 second before continuing

  F.boolToBin(true, false, 1 == 2); // Returns "100";
})();

View the docs (not finished)

Author

License

MIT

1.1.28

4 years ago

1.1.27

4 years ago

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

5 years ago

1.1.23

5 years ago

1.1.22

5 years ago

1.1.21

5 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago