Skip to content

Conversation

jimmywarting
Copy link

  • Switched to ESM
  • Added JSDoc
  • Switched out Buffer to Uint8Array ( for friendlier browser bundles )

Jimmy Wärting added 2 commits September 25, 2023 14:00
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommended to add also "type": "module"

const net = require('net');
const os = require('os');
const ip = require('..');
import assert from 'assert';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For internal Node packages, i should prefer to add node: before the package, like
import assert from 'node:assert';
Makes it more clear that it is just a native Node package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants