d-jstools

1.0.5 • Public • Published

D-JSTools

Every day is a good day 😄 😄 😄


What's this ?

Some useful tools for JavaScript.

List of tools available at now:

Tool Intro
DLog(content,tag,type) The logger with time and tag.
DArrayFilter(array) Return a new array based on the array entered.

How to use it ?

for example:

  • DLog
import {DLog} from 'd-jstools';
 
let tag = "Test-----";
let content = "hello world";
 
console.log(content,tag);

  • DArrayFilter
import {DArrayFilter} from 'd-jstools';
 
let testArray = [1,2,3,2,1];
let newArray = DArrayFilter(testArray);
 
console.log(newArray);
 


Api

The param for tools, see below:

Func Param value Intro
DLog(content,tag,type) content String the log content.
tag String the log tag.
type log,info,error,warn the log type,see the value.
DArrayFilter(array) array Array The array for filtering.

Package Sidebar

Install

npm i d-jstools

Homepage

starsion.cn/

Weekly Downloads

11

Version

1.0.5

License

ISC

Unpacked Size

24.3 kB

Total Files

7

Last publish

Collaborators

  • starsion