copybar

0.1.0 • Public • Published

Copybar for npm

Copybar is a CMS for developers and none developers alike.

This module allows you to add Copybar elements to a page using JavaScript.

Install via npm:

$ npm install --save copybar

Add a target div to your HTML:

<body>
  <div id="script_div"></div>
</body>

You can import the copybar:

import { renderCopybar } from 'copybar';

$(document).ready(function() {
  renderCopybar({
    target: '#script_div',
    account: 'isaacnewton',
    element: 'all-about-gravity'
  });
});

Or you can use CommonJS:

var copybar = require('copybar')

$(document).ready(function() {
  copybar.renderCopybar({
    target: '#script_div',
    account: 'isaacnewton',
    element: 'all-about-gravity'
  });
});

Contribute

The tests require electron && electron-mocha. If you haven't already, install these globally:

$ npm install -g electron electron-mocha

And run the tests:

$ npm test

Readme

Keywords

Package Sidebar

Install

npm i copybar

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • copybar