UNPKG
@okta-dfuhriman/okta-auth-js
Version:
latest (7.5.4)
7.5.4
7.5.3
7.5.2
7.5.1
7.5.0
7.3.22
7.3.21
7.3.20
7.3.19
7.3.18
7.3.17
7.3.16
7.3.15
7.3.14
7.3.13
7.3.12
7.3.11
7.3.10
7.3.9
7.3.8
7.3.7
7.3.6
7.3.5
7.3.4
7.3.3
7.3.2
7.3.1
7.3.0
The Okta Auth SDK
github.com/okta-dfuhriman/okta-auth-js
okta-dfuhriman/okta-auth-js
@okta-dfuhriman/okta-auth-js
/
env
/
node_modules
/
dotenv
/
lib
/
cli-options.js
14 lines
(11 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* @flow */
const
re =
/^dotenv_config_(encoding|path|debug)=(.+)$/
module
.
exports
=
function
optionMatcher
(
args
/*: Array<string> */
) {
return
args.
reduce
(
function
(
acc, cur
) {
const
matches = cur.
match
(re)
if
(matches) { acc[matches[
1
]] = matches[
2
] }
return
acc }, {}) }