diff --git a/.github/funding.yml b/.github/funding.yml deleted file mode 100644 index bdf471f..0000000 --- a/.github/funding.yml +++ /dev/null @@ -1,4 +0,0 @@ -github: sindresorhus -open_collective: sindresorhus -tidelift: npm/read-chunk -custom: https://sindresorhus.com/donate diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a023591..346585c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,6 @@ jobs: node-version: - 20 - 18 - - 16 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/package.json b/package.json index 11e2364..d3bb9fc 100644 --- a/package.json +++ b/package.json @@ -11,9 +11,13 @@ "url": "https://sindresorhus.com" }, "type": "module", - "exports": "./index.js", + "exports": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "sideEffects": false, "engines": { - "node": ">=16.0.0" + "node": ">=18" }, "scripts": { "test": "xo && ava && tsd" @@ -37,10 +41,9 @@ "open" ], "devDependencies": { - "@types/node": "^16.4.13", "ava": "^6.1.3", - "sinon": "^11.1.2", - "tsd": "^0.17.0", + "sinon": "^18.0.0", + "tsd": "^0.31.1", "uint8array-extras": "^1.1.0", "xo": "^0.58.0" } diff --git a/readme.md b/readme.md index eaa5f9a..c7060cf 100644 --- a/readme.md +++ b/readme.md @@ -6,8 +6,8 @@ Because the built-in way requires way too much boilerplate. ## Install -``` -$ npm install read-chunk +```sh +npm install read-chunk ``` ## Usage @@ -45,4 +45,4 @@ The number of bytes to read. Type: `number` -The poosition to start reading from. +The position to start reading from.