Modularization of JavaScript API

Hi all,

For me as developer that worked with lots of languages seems bad practices to put all JavaScript API in one global object as property ... Due to this JavaScript global object is looks like a garbage

Is there a specification that tries to modularize JavaScript API ?
In such way it would be easier to write cross-platform libraries and applications ...

Hi @redradist

There is this proposal: GitHub - tc39/proposal-built-in-modules to add Standard built-in libraries for language APIs instead of adding them to the global object.

You may find https://github.com/tc39/proposal-built-in-modules interesting, but it's got a number of competing constraints.