| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- 'use strict';
- const os = require('os');
- const createExplorer = require('./createExplorer');
- const homedir = os.homedir();
- module.exports = function cosmiconfig(
- moduleName ,
- options
-
-
-
-
-
-
-
-
-
-
-
-
- ) {
- options = Object.assign(
- {},
- {
- packageProp: moduleName,
- rc: `.${moduleName}rc`,
- js: `${moduleName}.config.js`,
- rcStrictJson: false,
- stopDir: homedir,
- cache: true,
- sync: false,
- },
- options
- );
- return createExplorer(options);
- };
|