Myna
- an easy error messages generator.
install
npm install myna
usage
var myna = 1001: 'invalid params' 1002: 'unknown key: %s' 1003: 'invalid id %s found in %s' ; // create error var err = myna; // throw error with arguments throw myna; throw myna;