1.0.0 • Published 6 years ago

d3block v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

d3block

Basic files for a block for bl.ocks.org.

This module lets you create the block structure from the command line.

Usage

Install:

npm install -g d3block   

Go to the folder where you want to create your block and write on the terminal:

d3block

This will create a basic index.html and a .block file, which is the one bl.ocks.org uses to customize your block as the type of license, frame border or its height.

Options

d3block will give you a plane html file with d3 as dependency by default.
You can pass arguments to it like TopoJSON or jQuery to be included in the index.html.

d3block topojson jquery