1.0.0 • Published 4 years ago
coderslib v1.0.0
Coders Library
A library of commands to make your coding projects easier with simple things that all can understand and use.
Library Includes
element(id: string)
Get the data from the element in the document by using the id of element.
ranInteger(min: int, max: int)
Returns a random integer with a min and max value of anything you want.
ranString(length: int)
Returns with a random string of characters with any length you choose.
percent(number: int, total: int, round: bool)
Return with the percentage (set by number) of the total. Option to round up the results using round by setting to true or false.
Installing
To use the library simply put the following code in the <head>
tag.
<script src="https://github.com/McJoe21/coderslib/blob/master/index.js"></script>
Or use the npm package
npm i coderslib --save
1.0.0
4 years ago