Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

help-me-respond

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

help-me-respond - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc