UNPKG
auspice
Version:
beta (2.23.0-beta.0)
latest (2.69.0)
version1 (1.39.1)
2.69.0
2.68.0
2.67.0
2.66.0
2.65.0
2.64.0
2.63.1
2.63.0
2.62.0
2.61.2
2.61.1
2.61.0
2.60.0
2.59.1
2.59.0
2.58.0
2.57.0
2.56.1
2.56.0
2.55.1
2.55.0
2.54.3
2.54.2
2.54.1
2.54.0
2.53.0
2.52.1
2.52.0
2.51.0
2.50.0
2.49.0
2.48.0
2.47.0
2.46.1
2.46.0
2.45.2
2.45.1
2.45.0
2.44.0
2.43.0
2.42.0
2.41.0
2.40.1
2.40.0
2.39.0
2.38.0
2.37.3
2.37.2
2.37.1
2.37.0
2.36.0
2.35.0
2.34.1
2.34.0
2.33.0
2.32.1
2.32.0
2.31.0
2.30.0
2.29.1
2.29.0
2.28.0
2.27.0
2.26.0
2.25.1
2.25.0
2.24.1
2.24.0
2.23.0
2.23.0-beta.0
2.22.2
2.22.1
2.22.0
2.21.0
2.20.1
2.20.0
2.19.0
2.18.4
2.18.3
2.18.2
2.18.1
2.18.0
2.17.4
2.17.3
2.17.2
2.17.1
2.17.0
2.16.0
2.15.0
2.14.0
2.13.0
2.12.0
2.11.4
2.11.3
2.11.2
2.11.1
2.11.0
2.10.0
2.9.1
2.9.0
2.8.1
2.8.0
2.7.0
2.6.0
2.5.7
2.5.6
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.1
2.4.0
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-beta.2
2.0.0-beta.1
2.0.0-alpha.1
2.0.0-alpha.0
1.39.1
1.39.0
1.38.2
1.38.1
1.38.0
1.37.5
1.37.4
1.37.3
1.37.2
1.37.1
1.37.0
1.36.6
1.36.5
1.36.4
1.36.3
1.36.2
1.36.1
1.36.0
1.35.5
1.35.4
1.35.3
1.35.2
1.35.1
1.35.0
1.34.4
1.34.3
1.34.2
1.34.1
1.34.0
1.33.0
1.32.0
1.31.0
1.30.3
1.30.2
1.30.1
1.30.1-a
1.30.0
1.29.0
1.29.0-i
1.29.0-h
1.29.0-g
1.29.0-f
1.29.0-e
1.29.0-d
1.29.0-c
1.29.0-b
1.29.0-a
Web app for visualizing pathogen evolution
www.npmjs.com/package/auspice
nextstrain/auspice
auspice
/
docs-src
/
node_modules
/
rechoir
/
lib
/
normalize.js
16 lines
(14 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function
normalizer
(config)
{
if
(typeof
config
===
'string'
) {
return
{
module
:
config
} }
return
config
; };
module
.exports =
function
(config)
{
if
(Array.isArray(
config
)) {
return
config
.map(normalizer); }
return
normalizer(
config
); };