Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
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.js 470B

1234567891011121314151617181920
  1. 'use strict';
  2. const chalk = require('chalk');
  3. const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color';
  4. const main = {
  5. info: chalk.blue('ℹ'),
  6. success: chalk.green('✔'),
  7. warning: chalk.yellow('⚠'),
  8. error: chalk.red('✖')
  9. };
  10. const fallbacks = {
  11. info: chalk.blue('i'),
  12. success: chalk.green('√'),
  13. warning: chalk.yellow('‼'),
  14. error: chalk.red('×')
  15. };
  16. module.exports = isSupported ? main : fallbacks;