0.0.29 • Published 8 years ago

amdlib v0.0.29

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

amdlib

Install

Install the tool from npm registry.

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

amdlib -b "path/to/" -t toto.js

Program API

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

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.2

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.1

9 years ago