1.1.10 • Published 9 months ago

easier-jsever v1.1.10

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months 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

9 months ago

1.1.10

9 months ago

1.1.8

9 months ago

1.1.7

10 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.25

10 months ago

1.0.24

10 months ago

1.0.23

10 months ago

1.0.22

10 months ago

1.0.21

10 months ago

1.0.20

10 months ago

1.0.19

10 months ago

1.0.18

10 months ago

1.0.17

10 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.0

10 months ago