Skip to content

Brightspace/web-package-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 );
} );