# jm-core

> core lib for jm-* projects

Latest version **1.0.8** (published 2017-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install jm-core
pnpm add jm-core
yarn add jm-core
bun add jm-core
```

## 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.8 |
| Published | 2017-06-10 |
| First published | 2016-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jeff YU |
| Maintainers | jeffyu |
| Keywords | javascript, jm-core |

## Links

- npm: https://www.npmjs.com/package/jm-core
- Repository: https://github.com/jm-root/jm-core
- Issues: https://github.com/jm-root/jm-core/issues
- npm.io page: https://npm.io/package/jm-core

## Dependencies (5)

- [jm-err](https://npm.io/package/jm-err.md) ^1.0.0
- [jm-event](https://npm.io/package/jm-event.md) ^1.0.1
- [jm-utils](https://npm.io/package/jm-utils.md) ^1.0.1
- [jm-logger](https://npm.io/package/jm-logger.md) ^1.0.1
- [jm-module](https://npm.io/package/jm-module.md) ^1.0.0

## Recent versions

- 1.0.8 (latest) — 2017-06-10
- 1.0.7 — 2017-06-07
- 1.0.6 — 2017-05-27
- 1.0.5 — 2017-04-22
- 1.0.4 — 2017-04-22
- 1.0.3 — 2017-04-21
- 1.0.2 — 2017-03-27
- 0.0.7 — 2016-11-23
- 0.0.6 — 2016-10-17
- 0.0.5 — 2016-07-01
- 0.0.4 — 2016-06-27
- 0.0.3 — 2016-04-14
- 0.0.2 — 2016-04-08
- 0.0.1 — 2016-01-29

## README

# jm-core

core lib for jm-* projects

- install

```javascript
npm install --save jm-core
```

- ES6

```javascript
import JM from 'jm-core';
let jm = new JM();
jm.logger.debug('works.');

```

- node

```javascript
var JM = require('jm-core');
var jm = new JM();
jm.logger.debug('works.');

//也可以采用全局变量jm，不推荐
require('jm-core');
jm.logger.debug('works.');

```

- browser

```
<script src="dist/js/jm-core.js"></script>
<script>
    jm.logger.debug('works.');
</script>
```

### define a module

```
// es6
let moduleErr = ($, name = 'ERR') => {
    enableErr($, name);

    return {
        name: name,
        unuse: function ($) {
            delete $[name];
        },
    };
};
export {moduleErr};
```

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