From 5506719c33643fd772610ec956c6accdc73bfea4 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Wed, 2 Nov 2016 15:32:05 -0700 Subject: [PATCH] Update README. --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 4d6bb207..32299bfe 100644 --- a/README.md +++ b/README.md @@ -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")); +```