Files
n8n-nodes-strike/node_modules/gulp-cli/lib/shared/ansi.js
Martien 5605b9b49a Initial commit: n8n Strike API node
- Add Strike API credentials configuration
- Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates)
- Add comprehensive operation descriptions for all resources
- Include CLAUDE.MD documentation
- Set up build configuration with TypeScript, ESLint, and Prettier

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 11:00:38 +01:00

42 lines
929 B
JavaScript

'use strict';
var colors = require('ansi-colors');
var supportsColor = require('color-support');
var hasColors = colorize();
/* istanbul ignore next */
module.exports = {
red: hasColors ? colors.red : noColor,
green: hasColors ? colors.green : noColor,
blue: hasColors ? colors.blue : noColor,
magenta: hasColors ? colors.magenta : noColor,
cyan: hasColors ? colors.cyan : noColor,
white: hasColors ? colors.white : noColor,
gray: hasColors ? colors.gray : noColor,
bgred: hasColors ? colors.bgred : noColor,
bold: hasColors ? colors.bold : noColor,
yellow: hasColors ? colors.yellow : noColor,
};
function noColor(message) {
return message;
}
function hasFlag(flag) {
return (process.argv.indexOf('--' + flag) !== -1);
}
function colorize() {
if (hasFlag('no-color')) {
return false;
}
/* istanbul ignore if */
if (hasFlag('color')) {
return true;
}
return supportsColor();
}