npm install pinf-it-module-insightStatus: DEV
Module Insight
==============
Module standards are evolving but there are various differences across communities.
This library attempts to generate a normalized module descriptor for
any module that adheres to any the following conventions:
* CommonJS
* nodejs
* AMD
* UMD
* And various other formats. See ./test/assets/various.
Install
-------
npm install pinf-it-module-insight
Usage
-----
const MODULE_INSIGHT = require("pinf-it-module-insight");
MODULE_INSIGHT.parseFile("
// descriptor.globals
// descriptor.format
// descriptor.undefine
// descriptor.warnings
// descriptor.errors
});
Development
-----------
npm test
Links
=====
* http://addyosmani.com/writing-modular-js/
* https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
License
=======