# amdlib

> Tools for AMD standard. check module legal, find dependency etc.

Latest version **0.0.29** (published 2016-01-20) · MIT license · 0 weekly downloads

## Install

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

Provides the command `amdlib`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.29 |
| Published | 2016-01-20 |
| First published | 2015-11-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | XU Kai |
| Maintainers | echofun |
| Keywords | amd |

## Links

- npm: https://www.npmjs.com/package/amdlib
- Repository: https://github.com/EchoFUN/amdlib
- Homepage: https://github.com/EchoFUN/amdlib#readme
- Issues: https://github.com/EchoFUN/amdlib/issues
- npm.io page: https://npm.io/package/amdlib

## Dependencies (6)

- [tree](https://npm.io/package/tree.md) ~0.1.3
- [esprima](https://npm.io/package/esprima.md) ~2.7.0
- [treeify](https://npm.io/package/treeify.md) ~1.0.1
- [commander](https://npm.io/package/commander.md) ~2.9.0
- [escodegen](https://npm.io/package/escodegen.md) ~1.7.0
- [estraverse](https://npm.io/package/estraverse.md) ~4.1.1

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.0.29 (latest) — 2016-01-20
- 0.0.28 — 2016-01-20
- 0.0.27 — 2016-01-20
- 0.0.26 — 2015-12-02
- 0.0.25 — 2015-11-12
- 0.0.24 — 2015-11-11
- 0.0.23 — 2015-11-10
- 0.0.22 — 2015-11-09
- 0.0.21 — 2015-11-09
- 0.0.2 — 2015-11-09
- 0.0.13 — 2015-11-09
- 0.0.12 — 2015-11-09
- 0.0.11 — 2015-11-04
- 0.0.1 — 2015-11-03

## README

# amdlib

## Install
Install the tool from npm registry.
```javascript
npm install -g amdlib
```

## API
* -b --basePath : `specify the base path of the module dependency`
* -t --tree : `print the dependency details as a tree format`
* -h --help : `print help doc`

## How to use
### Standalone
A test file called toto.js
```javascript
amdlib -b "path/to/" -t toto.js
```

### Program API
```javascript
var amdlib = require('../index.js');
var treeify = require('treeify');

amdlib.config({
  basePath: __dirname + '/demo/'
})

var treedp = amdlib.getDependency('entry', true);
var flatdp = amdlib.simpleDependency('entry');

console.log(treeify.asTree(treedp, true));
console.log(treeify.asTree(flatdp, true));
```

## License
MIT

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