1.1.10 • Published 2 years ago

easier-jsever v1.1.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

easier-jsever

Details

This is lightweight,easy to use package which helps you in javascript development. Sometimes you probably think ,Can't I write some methods in short but this package is for you . Lets start with an example

This supports ES modules

Best for react and backend development

Examples

Here is a javascript code :-

    console.log("hello");

with this package:-

   clog("hello");

Here is way to use this package .Follow these instructions

step1:-npm i easier-jsever

step2:-import {clog} from "easier-jsever";

       Or

 you can also do -const {clog,cerr} = require("easier-jsever");

step3:-Use like this
       const a = "name";
       clog(a);//name

Methods available :----------------------------------------------------------------

1.clog("This is a log message.");

2.cerr("This is an error message.");

3.cwarn("This is a warning message.");

4.cinfo("This is an info message.");

5.cbug("This is a debug message.");

6.ctrace("This is a trace message.");

const sampleArray = [{ name: "Alice", age: 25 }, { name: "Bob", age: 30 }];

7.ctbl(sampleArray);

8.cclr():-console.clear();

9.hlf():-retruns half
 
10.binarytochar() :-binary to character
   
11.raise(base,exponent):- Math.pow(base,exponent);

12.mult(a,b) :- a x b

13.tpm(a,b,c) :- perimeter of triangle

14.rpm(a,b,c,d) :- perimeter of rectangle

15.cpm(radius) :- circumference of circle

16.scpm(radius) :- circumference of semi-circle

17.table(num) :- writes table of given argument

18.docid :- document.getElementById();

19.doclass :- document.getElementsByClassName();

20.stringToBinary() :- string to binary

21.jsonfy(obj) :- used to stringify JSON

22.listenevnt(event,dom,cb):-
  event("click","change","submit",etc.),
  dom :- Element's variable on which you wanna put event listener,
  cb :- function of what will it do 

23. statement (condition,ifoutput,elseoutput):-
  condition:- 10 > 5,
  ifoutput:- if condition is true,console.log(ifoutput);
  elseoutput :- else it will console.log(elseoutput);

  ex:-
  let condtn  = 10 >5 ;
  let a = true;
  let b = false;
  statement(condtn, a,b);
  //true
  //you can use any variable name
24.sqr(num) :- Returns square root of given number

25.cuboidTsa(length, breadth, height) :- Returns total surface area of cuboid

26.cuboidLsa(length, breadth, height) :- Returns lateral surface area of cuboid

27.cuboidVolume(length, breadth, height) :- Returns volume of cuboid

28.cuboidDiagonal(length, breadth, height) :- Returns diagonal of cuboid

author:-paras prajapat github:-parasdeveloper8

1.1.9

2 years ago

1.1.10

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago