npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

currency-kit-code

v1.0.3

Published

React Native package for displaying all world currency symbols with SVGs, gradients, and auto-detect by user location.

Downloads

14

Readme

CurrencyKit Documentation

npm version View on npm

CurrencyKit is a React Native npm package for displaying all world currency symbols, fully customizable, with official SVGs for each symbol. Now supports advanced gradients, symbol placement, RTL/LTR, and more.

Features

  • Get currency symbol by ISO 4217 code
  • Display stylized SVG symbols in React Native
  • Auto-detect and display the user's local currency symbol (no permissions required)
  • Locale/variant support for multi-locale currencies
  • CLI for adding/updating currencies
  • Demo component to showcase all features
  • Customization: size, color, gradients (linear/radial, multi-color)
  • Symbol placement (before/after amount), RTL/LTR support

Installation

npm install currency-kit-code

Usage

import { getCurrencySymbol, getUserCurrencySymbol, CurrencySymbol, CurrencyAmount } from 'currency-kit-code';

// Get symbol as string
const symbol = getCurrencySymbol('USD'); // $

// Get the user's local currency symbol automatically
const userSymbol = getUserCurrencySymbol(); // e.g., '£' in UK, '$' in US, '₹' in India

// Render a simple symbol
<CurrencySymbol code="EUR" size={32} color="#2196f3" />

// Advanced: Linear gradient (multi-color)
<CurrencySymbol
	code="USD"
	size={48}
	gradientType="linear"
	gradientColors={[
		{ color: '#ff0', offset: '0%' },
		{ color: '#f0f', offset: '50%' },
		{ color: '#0ff', offset: '100%' },
	]}
	gradientProps={{ x1: '0', y1: '0', x2: '1', y2: '1' }}
/>

// Advanced: Radial gradient
<CurrencySymbol
	code="EUR"
	size={48}
	gradientType="radial"
	gradientColors={[
		{ color: '#ff0', offset: '0%' },
		{ color: '#f0f', offset: '100%' },
	]}
	gradientProps={{ cx: '50%', cy: '50%', r: '50%' }}
/>

// CurrencyAmount: symbol placement, RTL, and custom props
<CurrencyAmount
	code="INR"
	amount={1234.56}
	symbolPosition="after"
	rtl={false}
	symbolProps={{ size: 40, gradientType: 'linear', gradientColors: [
		{ color: '#ff9800', offset: '0%' },
		{ color: '#f44336', offset: '100%' },
	] }}
	amountProps={{ style: { fontSize: 28, color: '#333' } }}
/>

Get the user's local currency symbol (optional)

import { getUserCurrencySymbol } from 'currency-kit-code';
const symbol = getUserCurrencySymbol(); // e.g., '£' in UK, '$' in US, '₹' in India

CLI Usage

npx currency-kit-code list
npx currency-kit-code add --code=XYZ --symbol=¤
npx currency-kit-code update --code=XYZ --symbol=§

Demo

See CurrencyKitDemo.js and CurrencyKitAdvancedDemo.js for a showcase of all supported currencies and advanced customization options.

Contributing

  • Use the CLI to add or update currencies
  • Submit SVGs for official or stylized symbols
  • Open issues or pull requests for improvements

License

MIT