https://github.com/phphe/helper-js
js functions, import on demand.
https://github.com/phphe/helper-js
Last synced: 9 months ago
JSON representation
js functions, import on demand.
- Host: GitHub
- URL: https://github.com/phphe/helper-js
- Owner: phphe
- License: mit
- Created: 2017-04-05T12:21:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T18:56:49.000Z (about 2 years ago)
- Last Synced: 2024-03-30T17:01:53.255Z (almost 2 years ago)
- Language: TypeScript
- Homepage: https://phphe.github.io/helper-js/
- Size: 5.21 MB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# helper-js
js functions, import on demand. TypeScript supported. [API](https://phphe.github.io/helper-js/)
js 方法库, 按需引入. 支持 TypeScript. [API 详细文档](https://phphe.github.io/helper-js/)
## Install / 安装
```sh
npm install helper-js --save
```
## Usage / 使用
```js
import {createElementFromHTML} from 'helper-js'
// or
import * as hp from 'helper-js'
hp.createElementFromHTML(...)
```
## API
[Type Document](https://phphe.github.io/helper-js/)
## Include in browser directly / 浏览器直接引入
Import `dist/index.iife.js`. Access functions by global variable `helperJs`. e.g.: `helperJs.createElementFromHTML(...)`.
引入 `dist/index.iife.js`. 通过全局变量`helperJs`访问子方法. 例: `helperJs.createElementFromHTML(...)`.