1.0.0 • Published 5 years ago

do-not-copy-hyphens v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

do-not-copy-hyphens

This script removes soft hyphens from whatever text the user is copying from your website.

Soft hyphens are a part of the text and will be carried along when a user copies the text. This is not always desirable, as the invisible hyphens can get in the way of other tasks and be difficult to detect, for example when copying text into Excel or a console.

Install this package with npm install do-not-copy-hyphens --save and load it with:

require('do-not-copy-hyphens')

If you're not using Node, you can load it as an external script:

<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/egilll/do-not-copy-hyphens/dist/index.js"></script>

License: MIT