Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 17, 2024 via pnpm

methods 1.1.2

HTTP methods that node supports
Package summary
Share
0
issues
1
license
1
MIT
Package created
26 Jun 2012
Version published
18 Jan 2016
Maintainers
4
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
methods@1.1.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of methods 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does methods do?

The "methods" NPM package provides HTTP verbs that Node.js core's HTTP parser supports. Compared to the http.METHODS export from Node.js core, it has a few key differences: all method names are lower-cased, it contains a fallback list of methods for Node.js versions that do not have the http.METHODS export (0.10 and lower), and it provides this fallback list without necessitating the inclusion of the http shim module when using tools like Browserify. In essence, "methods" is a utility tool that aims to ease dealing with HTTP methods in Node.js applications, particularly for older versions of Node.js and for browser-oriented code.

How do you use methods?

To use the "methods" package in your Node.js application, you'll first need to install it via NPM. You can do so by running the command npm install methods in your terminal. After installing, you can import the "methods" package into your script with var methods = require('methods').

Here is an example of how to use the "methods" package in your application:

var methods = require('methods');

// Print all the HTTP methods supported
console.log(methods);

This code imports the "methods" package and logs all the HTTP methods supported by Node.js to the console.

Where are the methods docs?

The official documentation for the "methods" NPM package can be found directly in the README file on the project's GitHub page at https://github.com/jshttp/methods. The README file contains comprehensive information on the functionality provided by the package, differences from the Node.js core http.METHODS export, instructions for installation, and how to use the package in your Node.js applications. This is the go-to resource for everything related to the "methods" package.