Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
currencies-symbol
Advanced tools
A simple light package that returns a country currency numeric symbol and also list all countries currency
A simple light package that returns a country currency numeric symbol and also list all countries currency with zero dependency.
npm install currencies-symbol
//ES5
const currenciesSymbol = require('currencies-symbol');
// ES6
import currenciesSymbol from 'currencies-symbol';
console.log(currenciesSymbol.all());
// This will return all curriencies symbol
console.log(currenciesSymbol.symbol("United States")); //$
// This will return '$' which is $.
console.log(currenciesSymbol.symbol("USD")); //$
// This will return '$' which is $.
console.log(currenciesSymbol.symbol("Dollar")); //$
// This will return '$' which is $.
console.log(currenciesSymbol.symbol("Nigeria")); //₦
// This will return '₦' which is ₦.
console.log(currenciesSymbol.symbol("NGN")); //₦
// This will return '₦' which is ₦.
console.log(currenciesSymbol.symbol("Naira")); //₦
// This will return '₦' which is ₦.
console.log(currenciesSymbol.symbol("GHC")); //¢
// This will return '¢' which is ¢
console.log(currenciesSymbol.symbol("Ghana")); //¢
// This will also return '¢' which is ¢
console.log(currenciesSymbol.symbol("Cedis")); //¢
// This will also return '¢' which is ¢.
/***
* Note: the .symbol() function takes any of this arguments - Country Name, Currency Name and Currency Abbreviation and return the currency symbol.
***/
function | argument | response | ||
---|---|---|---|---|
.all() | none | it returns all currencies symbol | ||
.symbol(name) | name(Country Name or Currency Name or Currency Abbreviation) | it returns a symbol for a particular country or currency . | ||
scope should be something specific to the commit change e.g logo
subject text should:
Message body (optional) If a body is to be written, it should:
Message Footer This should be used for referencing the issues using the following keywords: Start, Delivers, Fixes and Finishes. It should be written as:
This project is authored by Philips Blessing and is licensed for your use, modification and distribution under the MIT license.
FAQs
A simple light package that returns a country currency numeric symbol and also list all countries currency
The npm package currencies-symbol receives a total of 2 weekly downloads. As such, currencies-symbol popularity was classified as not popular.
We found that currencies-symbol demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.