encodeurl
npmv2.0.0Encode a URL to a percent-encoded form, excluding already-encoded sequences
Adopt with care
encodeurl is usable, with caveats. Last published 895 days ago.
- AAdoption: grade A, Excellent.
133.6M downloads per week and 5 known dependents.
- DMaintenance: grade D, Poor — a real concern.
Last published 895 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 6.8 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding encodeurl to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >= 0.8
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the encodeurl README.
var encodeUrl = require('encodeurl')encodeurl vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| encodeurlthis page | 133.6M | 5 | MIT | 2 years ago |
| query-string | 22.1M | 3 | MIT | 1 day ago |
| tr46 | 192.6M | 1 | MIT | 1 day ago |
| @jridgewell/resolve-uri | 166.3M | 1 | MIT | 1 day ago |
| punycode | 148.9M | 2 | MIT | 1 day ago |
| open | 130.4M | 4 | MIT | 1 day ago |
Dependencies
Declared by encodeurl v2.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (8)
Used by
Popular packages that depend on encodeurl.
Node.js final http responder
Better streaming static file server with Range and conditional-GET support
Fast, unopinionated, minimalist web framework
Koa web app framework
Serve static files
Relationship graph
Dependencies (left) and dependents (right) of encodeurl.
Frequently installed together
Escape string for use in HTML
An AST-based pattern checker for JavaScript.
Execute a callback when a request closes, finishes, or errors
parse a url with memoization
HTTP status utility
The ultimate javascript content-type utility.
Create HTTP error objects
Lightweight debugging utility for Node.js and the browser
HTTP response freshness testing
Create and parse HTTP Content-Type header
Infer the content-type of a request.
Better streaming static file server with Range and conditional-GET support
Release history
No releases in the last two years, typically about 591 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.0latest | 2 years ago | 6.8 KB | MIT |
| 1.0.2 | 8 years ago | — | MIT |
| 1.0.1 | 10 years ago | — | MIT |
| 1.0.0 | 10 years ago | — | MIT |
Overview
encodeurl is an npm package that encode a URL to a percent-encoded form, excluding already-encoded sequences. It is extremely widely used, with about 133.6M downloads per week and 5 known dependents in the graph. The latest version is 2.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need encode a URL to a percent-encoded form, excluding already-encoded sequences 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 (133.6M 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.
Maintainers
Frequently asked questions
Should I use encodeurl?
encodeurl is usable, with caveats. Last published 895 days ago.
How do I install encodeurl?
Run `npm install encodeurl` to add encodeurl to your npm project.
What license is encodeurl released under?
encodeurl is distributed under the MIT license.
How popular is encodeurl?
encodeurl has approximately 133,551,536 downloads per week and 5 known dependent packages.
Is encodeurl still maintained?
The most recent release of encodeurl (v2.0.0) was published 2 years ago.
Does encodeurl run install scripts?
No. encodeurl does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.