Skip to content

Commit

Permalink
Added comments regarding installing additional modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtuchkin committed Apr 22, 2017
1 parent e76e051 commit 9c51651
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"use strict";

var Buffer = require("buffer").Buffer,
bomHandling = require("./bom-handling"),
// Some environments don't have global Buffer (e.g. React Native).
// Solution would be installing npm modules "buffer" and "stream" explicitly.
var Buffer = require("buffer").Buffer;

var bomHandling = require("./bom-handling"),
iconv = module.exports;

// All codecs and aliases are kept here, keyed by encoding name/alias.
Expand Down

0 comments on commit 9c51651

Please sign in to comment.