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 919B

12345678910111213141516171819202122232425
  1. # at-least-node
  2. ![npm](https://img.shields.io/npm/v/at-least-node)
  3. ![node](https://img.shields.io/node/v/at-least-node)
  4. ![NPM](https://img.shields.io/npm/l/at-least-node)
  5. Sometimes you need to check if you're on _at least_ a given Node.js version, but you don't want to pull in the whole [`semver`](https://www.npmjs.com/package/semver) kitchen sink. That's what `at-least-node` is for.
  6. | Package | Size |
  7. | --------------- | ------- |
  8. | `at-least-node` | 2.6 kB |
  9. | `semver` | 75.5 kB |
  10. ```js
  11. const atLeastNode = require('at-least-node')
  12. atLeastNode('10.12.0')
  13. // -> true on Node 10.12.0+, false on anything below that
  14. ```
  15. When passing in a version string:
  16. - You cannot include a leading `v` (i.e. `v10.12.0`)
  17. - You cannot omit sections (i.e. `10.12`)
  18. - You cannot use pre-releases (i.e. `1.0.0-beta`)
  19. - There is no input validation, if you make a mistake, the resulting behavior is undefined