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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # read-pkg-up [![Build Status](https://travis-ci.org/sindresorhus/read-pkg-up.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg-up)
  2. > Read the closest package.json file
  3. ## Why
  4. - [Finds the closest package.json](https://github.com/sindresorhus/find-up)
  5. - [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs)
  6. - [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)
  7. - [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)
  8. ## Install
  9. ```
  10. $ npm install read-pkg-up
  11. ```
  12. ## Usage
  13. ```js
  14. const readPkgUp = require('read-pkg-up');
  15. (async () => {
  16. console.log(await readPkgUp());
  17. /*
  18. {
  19. packageJson: {
  20. name: 'awesome-package',
  21. version: '1.0.0',
  22. },
  23. path: '/Users/sindresorhus/dev/awesome-package/package.json'
  24. }
  25. */
  26. })();
  27. ```
  28. ## API
  29. ### readPkgUp(options?)
  30. Returns a `Promise<object>` or `Promise<undefined>` if no `package.json` was found.
  31. ### readPkgUp.sync(options?)
  32. Returns the result object or `undefined` if no `package.json` was found.
  33. #### options
  34. Type: `object`
  35. ##### cwd
  36. Type: `string`\
  37. Default: `process.cwd()`
  38. Directory to start looking for a package.json file.
  39. ##### normalize
  40. Type: `boolean`\
  41. Default: `true`
  42. [Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.
  43. ## read-pkg-up for enterprise
  44. Available as part of the Tidelift Subscription.
  45. The maintainers of read-pkg-up 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-read-pkg-up?utm_source=npm-read-pkg-up&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
  46. ## Related
  47. - [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file
  48. - [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file
  49. - [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories
  50. - [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json