bankcode-bic
Version:
Convert bank codes from IBAN to BICs, Name of bank. Currently supports only some selected EU countries.
45 lines (36 loc) • 1.93 kB
JavaScript
//#region src/commands/help.ts
function showHelp(cmd) {
if (cmd === "lookup") console.info(`Usage: bankcode-bic lookup <file> <keyName> <keyValue>
Find the <keyName> with the <keyValue> in the specified <file>.
You need to create a '<filename>.js' with the 'generate' command.
Example: bankcode-bic lookup de.js BankCode 305156796
`);
else console.info(`
Usage: bankcode-bic [options] <command>
Commands:
download <file> Download the original CSV source BIC and bank address data to a file
generate <directory> Generate a custom import files with relevant data in the specified directory
help Show this help message
lookup <file> <keyName> <keyValue> Find the <keyName> with the <keyValue> in the specified <file>.
You need to create a '<filename>.js' with the 'generate' command.
Example: bankcode-bic lookup de.js BankCode 305156796
Global Options:
--countries <country> Filter results by country code (e.g., DE, LT)
--clear-cache Clear the cache before downloading data
--debug Enable debug output
--no-cache Disable caching of downloaded data
--cache-ttl <ms> Set cache TTL in milliseconds (default: 24 hours)
--quiet Suppress output messages
-h, --help Show help
only for 'generate' command:
--field-names <fields> Comma-separated list of field names to include in the generated file
--key-names <keys> Comma-separated list of key names to include in the generated file
--format <json|js|ts> Output format used by generate command (default: '.js')
Examples:
generate ./output --field-names bic,name --key-names bankcode --countries DE,LT
bankcode-bic lookup ./output/de.js bankcode 10010010
For more information, visit: https://github.com/aheissenberger/bankcode-bic
`);
}
//#endregion
export { showHelp };