Permalink
Browse files

Update README.

1 parent 2d5a1ee commit 5506719c33643fd772610ec956c6accdc73bfea4 @mbostock mbostock committed Nov 2, 2016
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
@@ -43,3 +43,15 @@ Or import everything into a namespace (here, `d3`):
```js
import * as d3 from "d3";
```
+
+In Node:
+
+```js
+var d3 = require("d3");
+```
+
+You can also require individual modules and combine them into a `d3` object using [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign):
+
+```js
+var d3 = Object.assign({}, require("d3-format"), require("d3-geo"), require("d3-geo-projection"));
+```

0 comments on commit 5506719

Please sign in to comment.