delegates
npmv1.0.0delegate methods and accessors to another property
Not recommended for new projects
No — delegates should not be adopted for new projects. Last published 3922 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 3922 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies.
- 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 delegates 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
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the delegates README.
var delegate = require('delegates');
...
delegate(proto, 'request')
.method('acceptsLanguages')
.method('acceptsEncodings')
.method('acceptsCharsets')
.method('accepts')
.method('is')
.access('querystring')
.access('idempotent')
.access('socket')
.access('length')Dependencies
Declared by delegates v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on delegates.
Relationship graph
Dependencies (left) and dependents (right) of delegates.
Frequently installed together
Create and parse HTTP Content-Type header
The ultimate javascript content-type utility.
Create HTTP error objects
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Infer the content-type of a request.
Manipulate the HTTP Vary header
Execute a callback when a request closes, finishes, or errors
assert with status codes
Create and parse Content-Disposition header
compose Koa middleware
HTTP response freshness testing
Higher-level content negotiation
Release history
No releases in the last two years, typically about 277 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.0latest | 10 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
| 0.0.3 | 12 years ago | — | MIT |
| 0.0.2 | 12 years ago | — | MIT |
| 0.0.1 | 12 years ago | — | MIT |
Overview
delegates is an npm package that delegate methods and accessors to another property. It has 1 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need delegate methods and accessors to another property and value a focused 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
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use delegates?
No — delegates should not be adopted for new projects. Last published 3922 days ago.
How do I install delegates?
Run `npm install delegates` to add delegates to your npm project.
What license is delegates released under?
delegates is distributed under the MIT license.
How popular is delegates?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on delegates.
Is delegates still maintained?
The most recent release of delegates (v1.0.0) was published 10 years ago.
Does delegates run install scripts?
No. delegates does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.