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.

index.d.ts 1.0KB

12345678910111213141516171819202122232425262728293031
  1. declare const resolveFrom: {
  2. /**
  3. Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path.
  4. @param fromDirectory - Directory to resolve from.
  5. @param moduleId - What you would use in `require()`.
  6. @returns Resolved module path. Throws when the module can't be found.
  7. @example
  8. ```
  9. import resolveFrom = require('resolve-from');
  10. // There is a file at `./foo/bar.js`
  11. resolveFrom('foo', './bar');
  12. //=> '/Users/sindresorhus/dev/test/foo/bar.js'
  13. ```
  14. */
  15. (fromDirectory: string, moduleId: string): string;
  16. /**
  17. Resolve the path of a module like [`require.resolve()`](https://nodejs.org/api/globals.html#globals_require_resolve) but from a given path.
  18. @param fromDirectory - Directory to resolve from.
  19. @param moduleId - What you would use in `require()`.
  20. @returns Resolved module path or `undefined` when the module can't be found.
  21. */
  22. silent(fromDirectory: string, moduleId: string): string | undefined;
  23. };
  24. export = resolveFrom;