evil-tool

0.0.3-dev.18 • Public • Published

evil-tool

some common functions,and some inject functions to js data type prototype

Usage

esm

import {wait,urlSearch,CusLog} from "evil-tool"

cjs

const {wait,urlSearch,CusLog} = require("evil-tool")

demo

async function test(){
    const searchObj = urlSearch("https://www.baidu.com/s?ie=UTF-8")
    console.log(searchObj.getProperty("ie")) //UTF-8
    await wait(2000) //sync delay 2000ms
    // CusLog class only support browser environment
    CusLog.info('hello') // press f12,check browser Console
}

doc address

evil-tool-doc

Readme

Keywords

none

Package Sidebar

Install

npm i evil-tool

Weekly Downloads

1

Version

0.0.3-dev.18

License

ISC

Unpacked Size

6.86 MB

Total Files

6

Last publish

Collaborators

  • dabenfeng