Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esm #133

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Esm #133

wants to merge 2 commits into from

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