osr-quant
Version:
[](https://nodei.co/npm/osr-quant/) ###How to use npm install osr-quant
16 lines (15 loc) • 454 B
JavaScript
var text = function(name,express,text,options){
var value = 0;
if("function" == typeof(express)){
value = express();
}else if("string" == typeof(express)){
value = this.getValue(express,this.current);
}else{
value = express;
}
if(value){
// this.publish.apply(this,["text"].concat([name,text,options]));
this.messages.push({ method: "text", result: { text: text, options: options }});
}
}
module.exports = exports = text;