Meehl
Meehl formulas processor. TODO Eventually will run from command line
Installation
npm install meehl
Usage
First you need to make sure the corresponding formula package is available.
npm install meehl-candidate
Then run:
var meehl = ; ;
The snippet loads the formula in the npm package named meehl-candidate
and
prompts the user for input as required by the formula. When the user
finishes filling out the form, it logs the results in form of grades,
percentage points and total value as reported by meehl.
Formula
The Formula is expected to be an object containing a scores
property with
an array of Scores. Each score itself has a topic
that is the title of the
score, a set of questions
that function as guidelines for the score and
a value
that states the integer value of the score in the total formula.
A formula may also have a name and description, althought since formulas
are shipped as npm
packages this will be redundant with the package.json
name and description fields.
A sample formula would be:
Argument
Object
optionFunction
callback
Callback
String
gradeInteger
percentageInteger
value
meehl.inquire
Arguments
Object
formulaString
nameString
descriptionArray
scoresString
topicArray<String>
questionsInteger
value
Function
callback
License
Copyright (c) 2014, Xavier Via
BSD 2 Clause license See license file attached.