Need private packages and team management tools?Check out npm Teams »

jm-err

1.0.7 • Public • Published

jm-err

common error defines

// es6
import err from 'jm-err';
 
function test(obj) {
    console.info(JSON.stringify(obj.Err, null, 2));
    console.info(obj.errMsg('SUCCESS ${name}:${value}', {name: 'jeff', value: 123}));
    console.info(obj.err(obj.Err.SUCCESS));
    console.info(obj.err('SUCCESS ${name}:${value}', {name: 'jeff', value: 123}));
}
 
test(err);
 
let o = {};
err.enableErr(o);
test(o);
 

Install

npm i jm-err

DownloadsWeekly Downloads

46

Version

1.0.7

License

MIT

Unpacked Size

45.7 kB

Total Files

14

Last publish

Collaborators

  • avatar