hg-jslibrary

0.1.7 • Public • Published

hg-jslibrary

Library of common JavaScript function

Install

npm install hg-jslibrary

Usage

import f from "hg-jslibrary";
 
f.type(new Date()); // "Date"

如果你希望每个文件里都使用import引入,需如下配置

// webpack.config.js
module.exports = {
  ...
  plugins: [
   new webpack.ProvidePlugin({
      f: ['hg-jslibrary', 'default']
    })
  ]
}

API

文档地址

Changelog

2018.3.14

v0.1.7 修复打包错误

2018.9.7

v0.1.6 添加 parseUrl 方法

2018.9.7

v0.1.4 添加文档

2018.8.24

v0.1.2 添加 getValInObj 方法

v0.1.1 添加 arrSort 方法

2018.8.23

v0.1.0 初始化项目

/hg-jslibrary/

    Package Sidebar

    Install

    npm i hg-jslibrary

    Weekly Downloads

    0

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    38.4 kB

    Total Files

    32

    Last publish

    Collaborators

    • hanger