# rollup-plugin-pound

> Get rid of those pesky $ signs in your template strings! Replace them with the good old british £, or any other currency symbol!

Latest version **2.0.0** (published 2022-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-pound
pnpm add rollup-plugin-pound
yarn add rollup-plugin-pound
bun add rollup-plugin-pound
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-02-17 |
| First published | 2022-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Samuel Macleod |
| Maintainers | penalosa |
| Keywords | rollup, rollup-plugin |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-pound
- Repository: https://github.com/penalosa/rollup-plugin-pound
- Issues: https://github.com/penalosa/rollup-plugin-pound/issues
- npm.io page: https://npm.io/package/rollup-plugin-pound

## Dependencies (2)

- [rollup-pluginutils](https://npm.io/package/rollup-pluginutils.md) ^2.8.1
- [currency-symbol-map](https://npm.io/package/currency-symbol-map.md) ^5.0.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2022-02-17
- 1.0.0 — 2022-02-16

## README

# rollup-plugin-pound

Get rid of those pesky American $ signs in your Javascript template literals—replace them with good old British £ symbols, or any other supported currency!

## Example

Add it to your Rollup plugin list:

```js
import currencyPlugin from 'rollup-plugin-pound'
// rollup.config.js
export default {
 ...
 plugins: [
        currencyPlugin()
    ]
 ...
}
```

And watch as

```js
// Your code
console.log(`Hello £{process.argv[2]}`);
```

is transformed to

```js
// Transpiled code
console.log(`Hello ${process.argv[2]}`);
```

Perfect!

It even supports other currencies! Just provide the currency code like so:

```js
// rollup.config.js
export default {
 ...
 plugins: [
        currencyPlugin({currency: "EUR"})
    ]
 ...
}
```

And watch as

```js
// Your code
console.log(`Hello €{process.argv[2]}`);
```

is transformed to

```js
// Transpiled code
console.log(`Hello ${process.argv[2]}`);
```

It goes without saying that `USD` isn't supported though—no need to transpile when you have native browser support!

> No guarantees are provided as to whether currency symbols _not_ in template strings will be transpiled

---
_Source: https://npm.io/package/rollup-plugin-pound · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
