d2l-web-package-reader

3.2.0 • Public • Published

d2l-web-package-reader

NPM version Build status Coverage Status

Utilities for reading contents of D2L web package files.

Installation

Install from NPM:

npm install d2l-web-package-reader

Usage

To load all JavaScript files from a package by name:

var packageReader = require('d2l-web-package-reader');
 
packageReader.loadByName( __dirname, 'My.Package.Name' )
  then( function( files ) {
    console.log( files );
} );

Alternatively, to just load the files defined in a specific package file:

packageReader.loadByFile( '../path/to/file.package.xml' )
then( function( files ) {
    console.log( files );
} );

/d2l-web-package-reader/

    Package Sidebar

    Install

    npm i d2l-web-package-reader

    Weekly Downloads

    8

    Version

    3.2.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • d2l-travis-deploy