cors
npmv2.8.6Node.js CORS middleware
Overview
cors is an npm package that node.js CORS middleware. It is extremely widely used, with about 61.7M downloads per week and 1 known dependents in the graph. The latest version is 2.8.6, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need node.js CORS middleware and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (61.7M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of cors.
Dependencies
Runtime (2)
Dev (6)
Used by
Popular packages that depend on cors.
Native-ESM powered web dev build tool
node.js realtime framework server
The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server
Alternatives to cors
Fast, unopinionated, minimalist web framework
Thunk middleware for Redux.
Koa web app framework
Express style path to RegExp utility
compose Koa middleware
Frequently installed together
Lightweight debugging utility for Node.js and the browser
An extremely fast JavaScript and CSS bundler and minifier.
Higher-level content negotiation
Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol
Vite DevTools
A pure JavaScript implementation of Sass.
Generates a base64 id
TypeScript definitions for node
Tool for transforming styles with JS plugins
A JavaScript parser
HTTP server cookie parsing and serialization
JavaScript parser and stringifier for YAML
Version history
| Version | Published | License |
|---|---|---|
| 2.8.6latest | 5 months ago | MIT |
| 2.8.5 | 7 years ago | MIT |
| 2.8.4 | 9 years ago | MIT |
| 2.8.3 | 9 years ago | MIT |
| 2.8.2 | 9 years ago | MIT |
| 2.8.1 | 10 years ago | MIT |
| 2.8.0 | 10 years ago | MIT |
| 2.7.2 | 10 years ago | MIT |
| 2.7.1 | 11 years ago | MIT |
| 2.7.0 | 11 years ago | MIT |
| 2.6.1 | 11 years ago | MIT |
| 2.6.0 | 11 years ago | MIT |
| 2.5.3 | 11 years ago | MIT |
| 2.5.2 | 11 years ago | MIT |
| 2.5.1 | 11 years ago | MIT |
| 2.5.0 | 11 years ago | MIT |
| 2.4.2 | 12 years ago | MIT |
| 2.4.1 | 12 years ago | MIT |
| 2.4.0 | 12 years ago | MIT |
| 2.3.2 | 12 years ago | MIT |
Maintainers
Keywords
Funding
Frequently asked questions
How do I install cors?
Run `npm install cors` to add cors to your npm project.
What license is cors released under?
cors is distributed under the MIT license.
How popular is cors?
cors has approximately 61,721,317 downloads per week and 1 known dependent packages.