Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # @istanbuljs/load-nyc-config
  2. The utility function which NYC uses to load configuration.
  3. This can be used by outside programs to calculate the configuration.
  4. Command-line arguments are not considered by this function.
  5. ```js
  6. const {loadNycConfig} = require('@istanbuljs/load-nyc-config');
  7. (async () {
  8. console.log(await loadNycConfig());
  9. })();
  10. ```
  11. ## loadNycConfig([options])
  12. ### options.cwd
  13. Type: `string`
  14. Default: `cwd` from parent nyc process or `process.cwd()`
  15. ### options.nycrcPath
  16. Type: `string`
  17. Default: `undefined`
  18. Name of the file containing nyc configuration.
  19. This can be a relative or absolute path.
  20. Relative paths can exist at `options.cwd` or any parent directory.
  21. If an nycrc is specified but cannot be found an exception is thrown.
  22. If no nycrc option is provided the default priority of config files are:
  23. * .nycrc
  24. * .nycrc.json
  25. * .nycrc.yml
  26. * .nycrc.yaml
  27. * nyc.config.js
  28. * nyc.config.cjs
  29. * nyc.config.mjs
  30. ## Configuration merging
  31. Configuration is first loaded from `package.json` if found, this serves as the package
  32. defaults. These options can be overridden by an nycrc if found. Arrays are not merged,
  33. so if `package.json` sets `"require": ["@babel/register"]` and `.nycrc` sets `"require": ["esm"]`
  34. the effective require setting will only include `"esm"`.
  35. ## isLoading
  36. ```js
  37. const {isLoading} = require('@istanbuljs/load-nyc-config');
  38. console.log(isLoading());
  39. ```
  40. In some cases source transformation hooks can get installed before the configuration is
  41. loaded. This allows hooks to ignore source loads that occur during configuration load.
  42. ## `@istanbuljs/load-nyc-config` for enterprise
  43. Available as part of the Tidelift Subscription.
  44. The maintainers of `@istanbuljs/load-nyc-config` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-istanbuljs-load-nyc-config?utm_source=npm-istanbuljs-load-nyc-config&utm_medium=referral&utm_campaign=enterprise)