pinf-it-module-insight

Status: DEV

Usage no npm install needed!

<script type="module">
  import pinfItModuleInsight from 'https://cdn.skypack.dev/pinf-it-module-insight';
</script>

README

Status: 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:

Install

npm install pinf-it-module-insight

Usage

const MODULE_INSIGHT = require("pinf-it-module-insight");

MODULE_INSIGHT.parseFile("<path>", {}, function(err, descriptor) {
    // `descriptor.globals`
    // `descriptor.format`
    // `descriptor.undefine`
    // `descriptor.warnings`
    // `descriptor.errors`
});

Development

npm test

Links

License

UNLICENSE