@dms/packager

    0.1.2 • Public • Published

    Functions for packing and unpacking DMS supplies.

    This package is primarily referenced by other DMS packages and not necessarily used on its own.

    Loading @dms/packager.

    var dmsPackager = require ('@dms/packager');
    

    pack(supplyEntryPath)

    Creates a supply bundle object from an entry path. Recursively scans files for require() calls that use relative paths and minifies the code for each.

    var bundle = dmsPackager.pack(supplyEntryPath);
    

    unpack(bundle)

    Evaluates a supply bundle object into a pre-injected supply.

    var s = dmsPackager.unpack(bundle);
    

    Keywords

    none

    Install

    npm i @dms/packager

    DownloadsWeekly Downloads

    2

    Version

    0.1.2

    License

    Apache-2.0

    Last publish

    Collaborators

    • kgarg
    • pbinggeser