ming-codes / d3-plugins-dist

Distributable module formats for d3-plugins
5 stars 1 forks source link

What is the syntax for a require statement? #13

Closed atgillette closed 8 years ago

atgillette commented 8 years ago

How do I write the require statement to import a plugin?

ming-codes commented 8 years ago

Are you looking to load from node.js or some other module loader?

atgillette commented 8 years ago

yes. node.js style.

ming-codes commented 8 years ago
var mod = require('d3-plugins-dist/dist/<author>/<plugin-name>/cjs');