🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@kabeep/forex-cli

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kabeep/forex-cli

A Node.js Library to convert foreign exchange in terminal

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
192
464.71%
Maintainers
1
Weekly downloads
 
Created
Source

forex-cli

NodeJS Install Size NPM code style License

English | 简体中文

Insights

usage-png

📖 Introduction

A Node.js Library to convert foreign exchange in terminal.

⚙️ Installation

npm install --global @kabeep/forex-cli
yarn add --global @kabeep/forex-cli
pnpm add --global @kabeep/forex-cli

🚀 Usage

forex [options] <amount>

Options:
  -f, --from     The base currency code or locale code[string] [default: "auto"]
  -t, --to       The base currency code or locale code[string] [default: "auto"]
  -d, --date     The date for the conversion rate, or "latest" for the most rece
                 nt                                 [string] [default: "latest"]
      --timeout  Request timeout (milliseconds)         [number] [default: 5000]
  -v, --version  Show version number                                   [boolean]
  -h, --help     Show help                                             [boolean]

Examples:
  forex -t USD                   Currency codes using ISO 4217
  forex -t US                    Use locale codes from ISO 3166-1
  -------
  forex -f USD -t EUR            Specify base and target currencies
  forex -f USD                   Specify one of the currencies and aut
                                           omatically fill in the other currency
                                            through the terminal area settings
  forex -t USD                   Specify one of the currencies and aut
                                           omatically fill in the other currency
                                            through the terminal area settings
  -------
  forex -t US -d 2024-12-01      Use the exchange rate for the specifi
                                           ed date
  forex -t US -d "Dec 01, 2024"  Use the exchange rate for the specifi
                                           ed date
  -------
  forex -t US --timeout 30000    Set request timeout

🌐 i18n

Language NameNative NameISO-639-1ISO-3166-1 (Alpha-2)Locale File
English-enUSen-US.ts
Chinese Simplified简体中文zhCNzh-CN.ts
  • forex - 💱 A JavaScript foreign exchange library via fawazahmed0's API.

🤝 Contribution

Contributions via Pull Requests or Issues are welcome.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

forex

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts