Javascript Library used to evaluate natspec expressions
It exposes global object natspec
with method evaluateExpression
.
var natspec = require('natspec');
var natspecExpression = "Will multiply `a` by 7 and return `a * 7`.";
var call = {
method: 'multiply',
abi: abi,
transaction: transaction
};
var evaluatedExpression = natspec.evaluateExpression(natspecExpression, call);
console.log(evaluatedExpression); // "Will multiply 4 by 7 and return 28."
More examples are available here.
npm run-script build
npm test
go test