# mace

> Fetch source with your http request but delegate some other url

Latest version **2.1.2** (published 2014-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install mace
pnpm add mace
yarn add mace
bun add mace
```

## 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 | 2.1.2 |
| Published | 2014-12-25 |
| First published | 2014-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lichenhao |
| Maintainers | lichenhao |
| Keywords | util, underscore, commander, log, logue, debug, http |

## Links

- npm: https://www.npmjs.com/package/mace
- Repository: https://github.com/lichenhao/mace
- Homepage: https://lichenhao.github.io/mace
- Issues: https://github.com/lichenhao/mace/issues
- npm.io page: https://npm.io/package/mace

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 2.1.2 (latest) — 2014-12-25
- 2.1.1 — 2014-12-08
- 2.1.0 — 2014-12-06
- 2.0.0 — 2014-10-26
- 0.0.7 — 2014-06-13
- 0.0.6 — 2014-06-13
- 0.0.5 — 2014-06-08
- 0.0.3 — 2014-06-02
- 0.0.2 — 2014-06-02
- 0.0.1 — 2014-06-01
- 0.0.0 — 2014-06-01

## README

#Mace is a pure tools for nodejs 

Not like underscore, this is all for NodeJs.

# How to use

```
var util = require('mace');
// -
// |-> demo.js
// 
// 
// exports.test = true;
//  util.use('./demo.js'); 
// =>  {
//    "test": true
// }
// 
```

*Why mace need the module?* 
`Because need live load files under current module path`

## All api supports

```
util.each === util.forEach
util.map
util.filter
util.some
util.every

util.merge === jQuery.extend
// util.inherits(constructor, prototypes, supper);
util.inherits
util.splice === [].splice.call
util.slice === [].slice.call
util.clone === util.merge(true, {}, otherObjects);
// a-b => aB;
util.camelCase
util.makeArray === util.slice
util.MD5 
util.escapeHTML
util.unescapeHTML
// util.range(1,10) => random min = 1 max =10
util.range
// util.MCString for no mockjs magic string
util.MCString 
// util.pad(0,2) => '00'
util.pad 
// 12312312313 => 2011-02-03 12:10:11
util.stamp
// util.Guid('clam') => function () {return 'clam+id'} 
// clamxxxxx
util.Guid
```


```
util.type
util.isObject
util.isNumber
util.isArray
util.isNaN
util.isFunction
util.isError
util.isBuffer
util.isGzip
```


```
util.log
util.warn
util.error
util.trace
util.info
// tiny log no timestamp no line no filepath
util.logue
util.debug

util.debug(xxx).log
util.debug(xxx).warn
util.debug(xxx).error
util.debug(xxx).trace
util.debug(xxx).info
// tiny log no timestamp no line no filepath
util.debug(xxx).logue

util.line() => file:line:charsite
```


```
util.Command
util.Command().command
util.Command().option
```

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