Intended to be used in creating & validating a module's assessment question file for Pluralsight. Specifically you can do the following things with this package:
- create assessment questions pragmatically
- extract questions from a Pluralsight
- extract questions from marker objects within an Adobe XMPTM file generated by Adobe Premiere CC & Adobe Media Encoder CC
- validate the assessment file per Pluralsight's requirements
- create an assessment file (questions.txt / no-questions.txt) based on questions provided
NOTE: Rather than using traditional callbacks, promises are returned for async calls using the popular Q promise library.
Install using NPM:
$ npm install ps-assessment
Create Assessment Questions Programatically
var Assessment = ;var assessment = ;assessmentquestions;assessmentquestions;
Extract Questions from Pluralsight
var Assessment = ;var pathToMetaFile = path;Assessment;
Extract Questions from Adobe XMPTM Metadata File
var Assessment =path = ;var xmpFiles = pathpath;Assessment;
Validate Assessment Questions
var Assessment = ;var assessment = ;// add assessment questions via code or by loadingvar results = assessment;if resultslength == 0Console;elseConsole;resultsConsole;
Create Assessment File
var Assessment = ;var buildPath = path;var moduleNumber = 1;var assessment = ;assessmentquestions;assessmentquestions;// creates questions.txt or no-questions.txt depending if questions present in assessmentassessment;
See the tests for full usage.
If you want to see the full source prior to the "scrubbing" done to prepare for publication to NPM, just get the entire source and run an included gulp task to compile everything.
The type definitions used in the source of this project were acquired from the DefinitelyTyped project. They are all saved in the
tsd.json file and can be downloaded by running the following:
$ tsd reinstall -o