3.2.0 • Published 10 years ago

d2l-web-library-loader v3.2.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
10 years ago

d2l-web-library-loader

NPM version Build status Coverage Status

Utility to get locations of 3rd party libraries used by a D2L instance, such as jQuery, jQuery UI, and Valence UI.

Installation

Install from NPM:

npm install web-library-loader

Usage

var webLibraryLoader = require('web-library-loader');

var opts = {
	configPath: '/path/to/instanceDir/config'
};

webLibraryLoader.jquery( opts )
	.then( function( location ) {
		console.log( location );
	} );

// same API for jqueryui and valenceui
webLibraryLoader.jqueryui( opts )
	.then( ... );
webLibraryLoader.valenceui( opts )
	.then( ... );

As you can see above, this library makes use of promises.

Options

  • configPath: Path to the config directory under the root of your instance.

Contributing

Code Style

This repository is configured with EditorConfig rules and contributions should make use of them.

3.2.0

10 years ago

3.0.0

11 years ago

2.1.0

11 years ago

2.0.0

11 years ago

1.0.0

11 years ago

0.0.1

11 years ago