Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.

Commit 4a69d29

Browse files
committed
Remove /register
1 parent f23aacf commit 4a69d29

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Use ESM modules with zero setup.
77

88
```ts
9-
require("esm-hook/register");
9+
require("esm-hook");
1010

1111
const fetch = require("node-fetch").default;
1212
fetch("https://hacker-news.firebaseio.com/v0/item/8863.json?print=pretty")

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "esm-hook",
3-
"version": "0.1.1",
4-
"main": "lib/index.js",
3+
"version": "0.1.2",
4+
"main": "register.js",
55
"license": "MIT-0",
66
"repository": {
77
"url": "[email protected]:proteriax/esm-hook.git"

register.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
// Use `require("esm-hook")` instead of `require("esm-hook/register")`.
2+
// This file is not part of the public API.
13
module.exports = require("./lib/index").register({});

0 commit comments

Comments
 (0)