Skip to content

Commit

Permalink
Fix typo (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
xamgore authored May 10, 2020
1 parent a3eee35 commit 76f0f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/convict/MIGRATING_FROM_CONVICT_5_TO_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ New post-`convict@6.0.0` code:
const convict = require('convict')
const convict_format_with_validator = require('convict-format-with-validator')
const convict_format_with_moment = require('convict-format-with-moment')
const json5 = require('json5')
const JSON5 = require('json5')

// Use this only if you use the "email", "ipaddress" or "url" format
convict.addFormats(convict_format_with_validator)
Expand All @@ -32,7 +32,7 @@ convict.addFormats(convict_format_with_moment)

// Use this only if you have a .json configuration file in JSON5 format
// (i.e. with comments, etc.).
convict.addParser({extension: 'json', parse: JSON.parse})
convict.addParser({extension: 'json', parse: JSON5.parse})

const config = convict(config_schema)
```

0 comments on commit 76f0f98

Please sign in to comment.