hasown
npmv2.0.4TypeScriptA robust, ES3 compatible, "has own property" predicate.
Overview
hasown is an npm package that a robust, ES3 compatible, "has own property" predicate. The latest version is 2.0.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a robust, ES3 compatible, "has own property" predicate 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 (17 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 hasown.
Dependencies
Runtime (1)
Dev (16)
Used by
Popular packages that depend on hasown.
Alternatives to hasown
`Object.defineProperty`, but not IE 8's broken one.
A JavaScript parser
An AST-based pattern checker for JavaScript.
An Esprima-compatible JavaScript parser built on Acorn
A query library for ECMAScript AST using a CSS selector like query language.
Merge objects using their property descriptors
Determine whether an AST node is a reference
Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.
Tomorrow's ECMAScript modules today!
AST utils for webassemblyjs
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
The fastest directory crawler & globbing alternative to glob, fast-glob, & tiny-glob. Crawls 1m files in < 1s
Frequently installed together
An AST-based pattern checker for JavaScript.
The semantic version parser used by npm.
The ultimate javascript content-type utility.
Cross platform child_process#spawn and child_process#spawnSync
A stream that emits multiple other streams one after another.
A helper to optimistically set Symbol.toStringTag, when possible.
Version history
| Version | Published | License |
|---|---|---|
| 2.0.4latest | 1 month ago | MIT |
| 2.0.3 | 3 months ago | MIT |
| 2.0.2 | 2 years ago | MIT |
| 2.0.1 | 2 years ago | MIT |
| 2.0.0 | 2 years ago | MIT |
| 1.0.1 | 12 years ago | MIT |
Maintainers
Frequently asked questions
How do I install hasown?
Run `npm install hasown` to add hasown to your npm project.
What license is hasown released under?
hasown is distributed under the MIT license.
How popular is hasown?
hasown has approximately 0 downloads per week and 2 known dependent packages.