projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial commit
[yaffs-website]
/
node_modules
/
rechoir
/
lib
/
normalize.js
1
function normalizer (config) {
2
if (typeof config === 'string') {
3
return {
4
module: config
5
}
6
}
7
return config;
8
};
9
10
module.exports = function (config) {
11
if (Array.isArray(config)) {
12
return config.map(normalizer);
13
}
14
return normalizer(config);
15
};