</>PackageGraphPackageGraph

delegates

npmv1.0.0

delegate 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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')
Example truncated — see the full README.

Dependencies

Declared by delegates v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

mocha *should *

Used by

Popular packages that depend on delegates.

Relationship graph

Dependencies (left) and dependents (right) of delegates.

koadelegates
delegates dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 277 days apart.

Recent versions of delegates
VersionPublishedSizeLicense
1.0.0latest10 years agoMIT
0.1.012 years agoMIT
0.0.312 years agoMIT
0.0.212 years agoMIT
0.0.112 years agoMIT

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.