0.0.29 • Published 9 years ago

amdlib v0.0.29

Weekly downloads
3
License
MIT
Repository
github
Last release
9 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

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

10 years ago

0.0.25

10 years ago

0.0.24

10 years ago

0.0.23

10 years ago

0.0.22

10 years ago

0.0.21

10 years ago

0.0.2

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.1

10 years ago