2.0.0
- Added options:
debug
(console.error
is surpassed by default) andpromprt
(to specify string in prompt - default is 'Copy to clipboard: Ctrl+C, Enter'). Contribution by @evenchange4 - Switched back to using
textContent
to work around issues with trying to copy content that needed escaping, but preserving newline to be able to copy multiline text. Idea by @shvaikalesh