8000 GitHub - hamger/hg-jslibrary: a personal JavaScript library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hamger/hg-jslibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']
    })
  ]
}

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 初始化项目

About

a personal JavaScript library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0