Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

currency-flags

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-flags

Flags for currency codes.

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1K
decreased by-52.38%
Maintainers
1
Weekly downloads
 
Created
Source

currency-flags

This package outputs two CSS files (minified and unminified) with classes for currency codes using base64 background images inlined. Originally from https://github.com/transferwise/currency-flags.

How to use

1. Install

npm install --save currency-flags

2. Add CSS to page

3. Use

<div class="currency-flag currency-flag-usd"></div>

The currency-flag selector has a default display of inline-block, size of 24x16 and a background-size of cover. currency-flag-sm, currency-flag-lg and currency-flag-xl modifiers are available.

How to add flags

  1. Clone repo
  2. Run npm install
  3. Add correctly sized (48x32) png files to src/flags
  4. Run npm run build
  5. Commit to a new branch, include css files changed by build process
  6. Open a pull request

FAQs

Package last updated on 10 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc