2.0.0 • Published 2 months ago

tagged-template-escape v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 months ago

tagged-template-escape

Customizable escaping for es6 tagged template strings

Get it

npm install --save tagged-template-escape

Escape stuff

import templateEscaper from 'tagged-template-escape';

let urlEscape = templateEscaper(encodeURIComponent);

let somethingEvil = '\uD800\uDFFF';

window.location.href = urlEscape`http://mysite.com/?var=${somethingEvil}`;
2.0.0

2 months ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago