Giter VIP home page Giter VIP logo

e-utils's Introduction

e-utils

npm version Build Status Coverage Status

前端常用函数工具库

安装

NPM

npm install e-utils  --save

CDN

<script src="https://unpkg.com/e-utils/dist/e-utils.min.js" />

使用

导入需要的工具库,例如:

import { Cookie } from 'e-utils';

如果使用的是 CDN 引入,所有的工具方法挂载在全局变量 eutils 下面

eutils.Cookie.set('k', 'v');

按需加载

如需实现按需加载,可以通过以下两种方式实现:

直接引入 lib 包中的指定文件

import Cookie from 'e-utils/lib/cookie';

通过配合 babel-plugin-import 插件使用

npm install babel-plugin-import --save-dev

在.babelrc 文件添加如下配置

{
	"plugins": [
		[
			"import",
			{
				"libraryName": "e-utils",
				"libraryDirectory": "lib"
			}
		]
	]
}

e-utils's People

Contributors

dependabot[bot] avatar rekingzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.