Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-fetch-native

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-fetch-native - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

22

package.json
{
"name": "node-fetch-native",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -16,2 +16,5 @@ "repository": "unjs/node-fetch-native",

"import": "./dist/native.mjs"
},
"./src/index.js": {
"import": "./dist/index.mjs"
}

@@ -26,9 +29,2 @@ },

],
"scripts": {
"build": "unbuild",
"lint": "eslint --ext .ts,.js,.mjs,.cjs .",
"prepack": "unbuild",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && pnpm build && vitest run"
},
"devDependencies": {

@@ -44,3 +40,9 @@ "@nuxtjs/eslint-config-typescript": "latest",

},
"packageManager": "pnpm@7.0.0"
}
"packageManager": "pnpm@7.0.0",
"scripts": {
"build": "unbuild",
"lint": "eslint --ext .ts,.js,.mjs,.cjs .",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && pnpm build && vitest run"
}
}
# node-fetch-native
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![][npm-version-src]][npm-version-href]
[![][github-actions-src]][github-actions-href]
[![][packagephobia-src]][packagephobia-href]
<!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] -->
<!-- [![Codecov][codecov-src]][codecov-href] -->

@@ -10,3 +11,3 @@

Why this package?
**Why this package?**

@@ -16,6 +17,8 @@ - We can no longer `require('node-fetch')` with latest version. This stopped popular libraries from upgrading and dependency conflicts between `node-fetch@2` and `node-fetch@3`.

✅ Prefer to **native globals** when available (`fetch`, `Blob`, `File`, `FormData`, `Headers`, `Request`, and `Response`) when available (Node.js [experimental fetch](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch))
**Features:**
✅ Compact build and less install size with **zero dependencies**
✅ Prefer to **native globals** when available (`fetch`, `Blob`, `File`, `FormData`, `Headers`, `Request`, and `Response`) (See Node.js [experimental fetch](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch))
✅ Compact build and less install size with **zero dependencies** [![][packagephobia-s-src]][packagephobia-s-href] <sup>vs</sup> [![][packagephobia-s-alt-src]][packagephobia-s-alt-href]
✅ Support both **CommonJS** (`require`) and **ESM** (`import`) usage

@@ -25,2 +28,3 @@

## Usage

@@ -113,12 +117,18 @@

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/node-fetch-native?style=flat-square
[npm-version-src]: https://flat.badgen.net/npm/v/node-fetch-native
[npm-version-href]: https://npmjs.com/package/node-fetch-native
[npm-downloads-src]: https://img.shields.io/npm/dm/node-fetch-native?style=flat-square
[npm-downloads-src]: https://flat.badgen.net/npm/dm/node-fetch-native
[npm-downloads-href]: https://npmjs.com/package/node-fetch-native
[github-actions-src]: https://img.shields.io/github/workflow/status/unjs/node-fetch-native/ci/main?style=flat-square
[github-actions-src]: https://flat.badgen.net/github/status/unjs/node-fetch-native/main?style=flat-square
[github-actions-href]: https://github.com/unjs/node-fetch-native/actions?query=workflow%3Aci
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/node-fetch-native/main?style=flat-square
[codecov-href]: https://codecov.io/gh/unjs/node-fetch-native -->
[packagephobia-src]: https://flat.badgen.net/packagephobia/install/node-fetch-native
[packagephobia-href]: https://packagephobia.com/result?p=node-fetch-native
[packagephobia-s-src]: https://flat.badgen.net/packagephobia/install/node-fetch-native?label=node-fetch-native&scale=.9
[packagephobia-s-href]: https://packagephobia.com/result?p=node-fetch-native
[packagephobia-s-alt-src]: https://flat.badgen.net/packagephobia/install/node-fetch?label=node-fetch-native&scale=.9
[packagephobia-s-alt-href]: https://packagephobia.com/result?p=node-fetch
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc