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.

is-node-modules.cjs 317B

123456789101112131415
  1. 'use strict';
  2. const path = require('path');
  3. function isNodeModules(directory) {
  4. let basename = path.basename(directory);
  5. /* istanbul ignore next: platform specific branch */
  6. if (path.sep === '\\') {
  7. basename = basename.toLowerCase();
  8. }
  9. return basename === 'node_modules';
  10. }
  11. module.exports = isNodeModules;