# han-common-utils

> a powerful nodejs module, we called be han-http-utils

Latest version **1.0.6** (published 2017-04-14) · BSD license · 0 weekly downloads

## Install

```sh
npm install han-common-utils
pnpm add han-common-utils
yarn add han-common-utils
bun add han-common-utils
```

## 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.6 |
| Published | 2017-04-14 |
| First published | 2017-04-14 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | summerxiaohan |
| Maintainers | summerxiaoxixao |
| Keywords | han-common-utils |

## Links

- npm: https://www.npmjs.com/package/han-common-utils
- npm.io page: https://npm.io/package/han-common-utils

## Recent versions

- 1.0.6 (latest) — 2017-04-14
- 1.0.5 — 2017-04-14
- 1.0.4 — 2017-04-14
- 1.0.3 — 2017-04-14
- 1.0.2 — 2017-04-14
- 1.0.1 — 2017-04-14
- 1.0.0 — 2017-04-14

## README

han-common-utils 封装常用工具类。

version : 1.0.0  update by 2017-04-13


method list :
1. loadir by path
 HCommonUtils.loadDir(dir);

 demo :

 module/a.js :
 module.exports = function () {
     console.log('module a');
 }

  module/b.js :
  module.exports = function () {
      console.log('module b');
  }
 module/hello/b.js :
  module.exports = function () {
      console.log('module b--hello');
  }

  use:
var CommonUtils = require('han-common-utils');

var Module = CommonUtils.loadDir(__dirname+'/test');
var ModuleHello = CommonUtils.loadDir(__dirname+'/test/hello');

Module.a(); // print module a
Module.b(); // print module b
ModuleHello.b(); //print module b--hello

loadRoutes: 注册路由

loadHtml : 抓取html内容

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