1.0.0 • Published 2 years ago

rollup-pound-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rollup-plugin-pound

Get rid of those pesky American $ signs in your Javascript template literals—replace them with good old British £ symbols!

Example

Add it to your Rollup plugin list:

// rollup.config.js
export default {
 ...
 plugins: [
        poundPlugin()
    ]
 ...
}

And watch as

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

is transformed to

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

Perfect!

No guarantees are provided as to whether £ symbols not in template strings will be transpiled

1.0.0

2 years ago