https://github.com/3lang3/utilbag
this is javascript utils lib
https://github.com/3lang3/utilbag
Last synced: over 1 year ago
JSON representation
this is javascript utils lib
- Host: GitHub
- URL: https://github.com/3lang3/utilbag
- Owner: 3lang3
- Created: 2020-06-30T00:49:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-24T15:52:25.000Z (over 2 years ago)
- Last Synced: 2024-05-20T22:21:24.787Z (about 2 years ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# utilbag
web mobile 常用开发工具包
### Install
```bash
# npm
npm install utilbag
# yarn
yarn add utilbag
```
### Usage
#### umd:
```js
import { browser, date, event, number, reg, string } from 'utilbag'
console.log(date.today())
```
#### commonjs
```js
const utilbag = require('utilbag')
console.log(utilbag.date.today())
```
#### browser script tag
```html
const { browser, date, event, number, reg, string } = utilbag
console.log(date.today())
```
### API
ref: [utilbag types](./types.d.ts)