Package Exports
- codecopy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (codecopy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
codecopy
"Copy to clipboard" button for your code snippets. Inspired in codecopy.
Install
from NPM
$ npm install codecopy --savefrom CDN
<!-- CodeCopy Vanilla/UMD bundle -->
<link rel="stylesheet" src="//cdn.jsdelivr.net/npm/codecopy/umd/codecopy.min.css"></link>
<script src="//cdn.jsdelivr.net/npm/codecopy/umd/codecopy.min.js"></script>Also available amd and cjs version.
Usage
document.addEventListener('DOMContentLoaded', function (event) {
codecopy('pre') // your code tag selector!
})Related
- react-codecopy – A React component for "Copy to clipboard" button for your code snippets.
License
codecopy © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats