wrappy
npmv1.0.2Callback wrapping utility
Not recommended for new projects
No — wrappy should not be adopted for new projects. Last published 3767 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 3767 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.
ISC — 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 wrappy 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 wrappy README.
var wrappy = require("wrappy")
// var wrapper = wrappy(wrapperFunction)
// make sure a cb is called only once
// See also: http://npm.im/once for this specific use case
var once = wrappy(function (cb) {
var called = false
return function () {
if (called) return
called = true
return cb.apply(this, arguments)
}
})Dependencies
Declared by wrappy v1.0.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (1)
Used by
Popular packages that depend on wrappy.
Relationship graph
Dependencies (left) and dependents (right) of wrappy.
Release history
No releases in the last two years, typically about 607 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.0.0 | 5 years ago | 4.1 KB | ISC |
| 1.0.2latest | 10 years ago | — | ISC |
| 1.0.1 | 12 years ago | — | ISC |
| 1.0.0 | 12 years ago | — | ISC |
Overview
wrappy is an npm package that callback wrapping utility. It has 1 known dependents in the graph. The latest version is 1.0.2, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need callback wrapping utility 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 (ISC).
- Lean dependency tree (1 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use wrappy?
No — wrappy should not be adopted for new projects. Last published 3767 days ago.
How do I install wrappy?
Run `npm install wrappy` to add wrappy to your npm project.
What license is wrappy released under?
wrappy is distributed under the ISC license.
How popular is wrappy?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on wrappy.
Is wrappy still maintained?
The most recent release of wrappy (v1.0.2) was published 10 years ago.
Does wrappy run install scripts?
No. wrappy does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.