esm: provide named exports for all builtin libraries by devsnek · Pull Request #18131 · nodejs/node

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

bnoordhuis

guybedford

jasnell

jasnell

jasnell

jasnell

@devsnek devsnek changed the title esm: provide wrappers for all builtin libraries esm: provide named exports for all builtin libraries

Jan 13, 2018

guybedford

ljharb

jasnell

jasnell previously approved these changes Jan 13, 2018

ljharb

jdalton

jdalton

jdalton

jdalton

TimothyGu

TimothyGu

jdalton

jdalton

jdalton

provide named exports for all builtin libraries so that the libraries may be
imported in a nicer way for esm users: `import { readFile } from 'fs'`
instead of importing the entire namespace, `import fs from 'fs'`, and
calling `fs.readFile`. the default export is left as the entire
namespace (module.exports)

Labels

esm

Issues and PRs related to the ECMAScript Modules implementation.

lib / src

Issues and PRs related to general changes in the lib or src directory.