New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ewt/eutils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ewt/eutils

EUtils -- Ewt front end generic methods library!

  • 1.3.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

EUtils

EWT前端工具库

一、安装

1. 直接引入eUtils.min.js

  <script src="eUtils.min.js"></script>
  <script>
    var test = EUtils.test();
  </script>

2. npm/yarn安装

npm install @ewt/eutils

二、使用

1. 整包引用

import EUtils from '@ewt/eutils';

const demo = EUtils.test();

2. 引用具体某一函数

import { test } from '@ewt/eutils';

const demo = test();

三、TODO

1.  按需打包技术开发;
2.  注释转markdown文档技术开发;
3.  eslint代码规范调整;
4.  开发模式下的代码调试优化;

四、文档

规范文档   官方使用文档

五、客户端按需打包配置

客户端工程中引入时,为了减小最终打包后的包体积,可引入按需打包技术,工程最终只会将你项目中用到的方法打包,未引用的方法将不会被打入最终的目标文件,配置方法如下:

1. 安装依赖

为了实现按需打包,引入插件:babel-plugin-import

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

2. 配置.babelrc

{
  "plugins":[["import",
    {
      "libraryName": "@ewt/eutils",
      "libraryDirectory": "src",
      "camel2DashComponentName": false,
      "camel2UnderlineComponentName": false,
    }
  ]]
}

六.仓库地址

eutils官网: http://eutils.mistong.com/
github 开发|doc地址: https://github.com/E-Utils
gitlab 开发地址:http://git.mistong.com/commonjs/e-utils
gitlab doc地址:http://git.mistong.com/commonjs/eutils-doc

Keywords

FAQs

Package last updated on 28 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc