codecopy.js

    0.3.0 • Public • Published

    codecopy

    codecopy

    Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

    "Copy to clipboard" button for your code snippets. Inspired in codecopy.

    Install

    from NPM

    $ npm install codecopy --save

    from CDN

    <!-- CodeCopy Vanilla/UMD bundle -->
    <link rel="stylesheet" src="//cdn.jsdelivr.net/npm/codecopy.js/umd/codecopy.min.css"></link>
    <script src="//cdn.jsdelivr.net/npm/codecopy.js/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

    Install

    npm i codecopy.js

    DownloadsWeekly Downloads

    0

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    231 kB

    Total Files

    16

    Last publish

    Collaborators

    • kikobeats