Comparing version 0.0.1 to 0.0.2
@@ -36,6 +36,6 @@ { | ||
"EMG009": "ERROR", | ||
"EMG010": "ERROR", | ||
"EMG011": "ERROR", | ||
"EMG012": "ERROR", | ||
"EMG013": "ERROR", | ||
"EMG010": "The field should not be empty.", | ||
"EMG011": "Please fill all the fields.", | ||
"EMG012": "Should not be undefined.", | ||
"EMG013": "Should not be null.", | ||
"EMG014": "ERROR", | ||
@@ -42,0 +42,0 @@ "EMG015": "ERROR", |
{ | ||
"name": "msg-code", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,20 +7,36 @@ # msg-code | ||
# Example | ||
```javascript | ||
const msgCode = require('msg-code') | ||
msgCode.msg('SMG001') | ||
// { 'code':SMG001, 'msg': 'Successfully Inserted.'}; | ||
// { 'code':SMG001, 'msg': 'Successfully Inserted.'}; | ||
``` | ||
# | ||
#SUCCESS MESSAGES | ||
"SMG000": "Success", | ||
"SMG001": "Successfully Inserted." | ||
"SMG002": "Successfully Updated." | ||
"SMG003": "Successfully Deleted." | ||
"SMG004": "Successfully Created." | ||
#### SUCCESS MESSAGES | ||
#ERROR MESSAGES | ||
"EMG000":"ERROR" | ||
"EMG001": "Failed to insert." | ||
"EMG002": "Failed to Update." | ||
"EMG003": "Failed to Delete." | ||
"EMG004": "Failed to Create" | ||
* "SMG000": "Success", | ||
* "SMG001": "Successfully Inserted." | ||
* "SMG002": "Successfully Updated." | ||
* "SMG003": "Successfully Deleted." | ||
* "SMG004": "Successfully Created." | ||
#### ERROR MESSAGES | ||
* "EMG000":"ERROR" | ||
* "EMG001": "Failed to insert." | ||
* "EMG002": "Failed to Update." | ||
* "EMG003": "Failed to Delete." | ||
* "EMG004": "Failed to Create" | ||
* "EMG010": "The field should not be empty.", | ||
* "EMG011": "Please fill all the fields.", | ||
* "EMG012": "Should not be undefined.", | ||
* "EMG013": "Should not be null.", | ||
* "EMG025": "Oops, Something Went Wrong.", | ||
* "EMG026": "Token Not Valid", | ||
* "EMG027": "Token Expired. ", | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3137
42