set-function-length
npmv1.2.2TypeScriptSet a function's length property
Overview
set-function-length is an npm package that set a function's length property. The latest version is 1.2.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need set a function's length property and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (32 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of set-function-length.
Dependencies
Runtime (6)
Dev (26)
Used by
Popular packages that depend on set-function-length.
Alternatives to set-function-length
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Robustly `.call.bind()` a function
`Object.defineProperty`, but not IE 8's broken one.
Determine if the JS environment has `Symbol.toStringTag` support. Supports spec, or shams.
Get and robustly cache all JS language-level intrinsics at first require time
A simple cache for a few of the JS Error constructors.
A query library for ECMAScript AST using a CSS selector like query language.
An Esprima-compatible JavaScript parser built on Acorn
An AST-based pattern checker for JavaScript.
A robust, ES3 compatible, "has own property" predicate.
A JavaScript parser
Which kind of boxed JS primitive is this?
Frequently installed together
`Object.defineProperty`, but not IE 8's broken one.
An AST-based pattern checker for JavaScript.
string representations of objects in node and the browser
Get and robustly cache all JS language-level intrinsics at first require time
Helper functions around Function call/apply/bind, for use in `call-bind`
Version history
| Version | Published | License |
|---|---|---|
| 1.2.2latest | 2 years ago | MIT |
| 1.2.1 | 2 years ago | MIT |
| 1.2.0 | 2 years ago | MIT |
| 1.1.1 | 2 years ago | MIT |
| 1.1.0 | 2 years ago | MIT |
| 1.0.1 | 2 years ago | MIT |
| 1.0.0 | 2 years ago | MIT |
Maintainers
Frequently asked questions
How do I install set-function-length?
Run `npm install set-function-length` to add set-function-length to your npm project.
What license is set-function-length released under?
set-function-length is distributed under the MIT license.
How popular is set-function-length?
set-function-length has approximately 0 downloads per week and 1 known dependent packages.