First upload version 0.0.1
This commit is contained in:
13
node_modules/env-var/lib/accessors/json-array.js
generated
vendored
Normal file
13
node_modules/env-var/lib/accessors/json-array.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
|
||||
const asJson = require('./json')
|
||||
|
||||
module.exports = function asJsonArray (value) {
|
||||
var ret = asJson(value)
|
||||
|
||||
if (!Array.isArray(ret)) {
|
||||
throw new Error('should be a parseable JSON Array')
|
||||
}
|
||||
|
||||
return ret
|
||||
}
|
||||
Reference in New Issue
Block a user