Licence
GPL-3.0
Version
0.1.4
Deps
2
Vulns
0
Weekly
0
problemgenerator
Save silly B kids
拯救智障儿童
Install
$ npm i -g problemgenerator
Usage
$ pgen [options] <arguments>
$ pgen -c path-of-configuration
Available Options
-pNumber of problem (defaults to 30)-oOperator of problem (defaults to 'all', and '+', '-', '*', 'x', '/', '÷', 'pm', 'ms' are also available.)-rRange of operands (defaults to '1,100')-nNumber of operands of each problem (defaults to '4,6')-cPath of configuration file-hShow help
Configuration File
A .js or .json file
JSON:
{
"problemCount": 30,
"operator": "all",
"operandsRange": "1,100",
"operandsCount": "3,8"
}
or JS:
module.exports = {
problemCount: 30,
operator: 'all',
operandsRange: '1,100',
operandsCount: '3,8'
};