help-me-respond
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "help-me-respond", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Simple nodejs response helper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,10 +10,10 @@ ## Help me respond | ||
1. Install the module | ||
2. Setup config | ||
* Install the module | ||
* Setup config | ||
Create a config folder and put **default.json** in it. (more cool config setup in https://github.com/lorenwest/node-config). | ||
Create a config folder and put **default.json** in it. (more cool config setup at https://github.com/lorenwest/node-config). | ||
You will need to add the following to your **default.json** file. File naming is up to you :) This is a basic setup for the i18n-nodejs - https://github.com/eslam-mahmoud/i18n-nodejs | ||
``` | ||
{ | ||
@@ -24,4 +24,3 @@ "lang": "en", | ||
``` | ||
3. Create the specified above locales folder and locales file and add some messages there. | ||
* Create the specified above locales folder and locales file and add some messages there. | ||
@@ -39,6 +38,7 @@ ``` | ||
4. Setup friendly messages. | ||
* Setup friendly messages. | ||
Some messages returned from the server are too technical for the user. So we would like to differentiate between those messages and user friendly messages. Simply add the following to your **default.json** configuration file. Now you can add message names in the friendlyMessages array. | ||
``` | ||
``` | ||
{ | ||
@@ -45,0 +45,0 @@ "friendlyMessages": [ |
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
6898