Hacker News new | ask | show | jobs
by 178 4363 days ago
That is not an honest comparison, though.

    import { getCodec } from "iconv-lite";
would be

    var getCodec = require("iconv-lite").getCodec;
1 comments

Or in CoffeeScript,

    {getCodec} = require "iconv-lite"
Explicit dependencies without introducing new syntax? Yes, please.
or in es6 var {getCodec} = require("iconv-lite");