Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent d886886 commit 878e390e5236ee265639062f4788cdd4665f2dfd @jsmarkus committed Feb 27, 2012
Showing with 9 additions and 7 deletions.
  1. +9 −7 README.md
View
@@ -17,13 +17,15 @@ NPM install
NodeJS usage
============
- var binpacking = require('binpacking');
- var Packer = binpacking.Packer;
- var GrowingPacker = binpacking.GrowingPacker;
- var blocks = [{w:100, h:100}, {w:100, h:100}, {w:100, h:200}];
- var packer = new GrowingPacker;
- packer.fit(blocks);
- console.log(blocks);
+```javascript
+var binpacking = require('binpacking');
+var Packer = binpacking.Packer;
+var GrowingPacker = binpacking.GrowingPacker;
+var blocks = [{w:100, h:100}, {w:100, h:100}, {w:100, h:200}];
+var packer = new GrowingPacker;
+packer.fit(blocks);
+console.log(blocks);
+```

0 comments on commit 878e390

Please sign in to comment.