# todo-util

> npm install todo-util

Latest version **1.0.0** (published 2018-03-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install todo-util
pnpm add todo-util
yarn add todo-util
bun add todo-util
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-03-26 |
| First published | 2018-03-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zjf |
| Maintainers | jiafengz |

## Links

- npm: https://www.npmjs.com/package/todo-util
- Repository: http://git.imweb.io/todo/adam
- npm.io page: https://npm.io/package/todo-util

## Recent versions

- 1.0.0 (latest) — 2018-03-26

## README

# 一个常用的javascript工具函数库

# 安装
npm install todo-util

# 使用
import base from 'todo-util'

# API
```javascript
/**
 * base.querystring(name)
 * 获取指定的 querystring 中指定 name 的 value
 * @param {String} name
 * @param {String} querystring
 * @return {String|undefined}
 */
 
 /**
 * base.serialize(data)
 * 序列化对象，就是把对象转成 url 字符串
 * @param {Obj} data
 * @return {String}
 */
 
 /**
 * base.removeNode(node)
 * 删除 DOM 节点
 * @param {DOM} node
 * @return {DOM}
 */
 
 /**
 * base.insertAfter(node, target)
 * 在 target 节点之后插入 node 节点
 * 类似 $().insertAfter()
 * @param {DOM} node
 * @param {DOM} target
 */
 
 /**
 * base.addClass(node, className)
 * 添加类名
 * @param {DOM} node
 * @param {String|Array} className
 */
 
 /**
 * base.removeClass(node, className)
 * 移除类名
 * @param {DOM} node
 * @param {String|Array} className
 */
 
 /**
 * base.getAbsoluteUrl(url)
 * 获取绝对路径
 * @param {String} url
 * @return {String}
 */
 
 /**
 * base.debounce(callback, time)
 * 防抖动
 * @param {Function} callback
 * @param {Number} time
 * @return {Function}
 */
 
 /**
 * base.removeItemByIndex(index, arr)
 * 根据索引移出数组的某一项
 * @param {Number} index
 * @param {Array} arr
 * @return {Array}
 */
```

---
_Source: https://npm.io/package/todo-util · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
