# object-info

> get info of objects or set exotic accessors to objects

Latest version **0.1.5** (published 2026-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-info
pnpm add object-info
yarn add object-info
bun add object-info
```

## Health

**Score 50/100 (C)** — status: active.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2026-06-05 |
| First published | 2026-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | kage-sakura |
| Maintainers | kagesakura |
| Keywords | object, get, info |

## Links

- npm: https://www.npmjs.com/package/object-info
- npm.io page: https://npm.io/package/object-info

## Dependencies (2)

- [bindings](https://npm.io/package/bindings.md) ^1.5.0
- [node-gyp](https://npm.io/package/node-gyp.md) ^12.4.0

## Recent versions

- 0.1.5 (latest) — 2026-06-05

## README

# object-ext
## Usage
```js
const {
  getInfo,
  setLazyProperty
} = require("object-ext");

const object1 = ... // something

console.log(getInfo(object1));

setLazyProperty(
  object1,         // target
  "lasyProperty",  // property name
  () => Date.now() // initializer
);
```

## Example output (getInfo)
```
{
  constructorName: "WeakSet",
  entries: null,
  hasIndexedLookupInterceptor: false,
  hasNamedLookupInterceptor: false,
  identityHash: 961779,
  internalFields: [],
  isCallable: false,
  isConstructor: false,
  isApiWrapper: false,
  isUndetectable: false,
  values: [ {} ]
}
```

---
_Source: https://npm.io/package/object-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
