diff --git a/README.md b/README.md index 6cd1cf9..bdb34b0 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,15 @@ with the following differences: * Provides the fallback list when using tools like `browserify` without pulling in the `http` shim module. +> [!NOTE] +> This module is largely a wrapper of [`http.METHODS`](https://nodejs.org/api/http.html#httpmethods) from Node.js core with backwards compatibility for Node.js versions older than 0.11.8, making it mostly unnecessary for use in new projects. For newer Node.js versions, the following code is equivalent to using this module: + +```js +import { METHODS } from 'node:http' + +const methods = METHODS.map(() => method.toLowerCase()) +``` + ## Install This is a [Node.js](https://nodejs.org/en/) module available through the