# strip-instance

> Remove class instances from objects.

Latest version **1.0.0** (published 2020-03-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install strip-instance
pnpm add strip-instance
yarn add strip-instance
bun add strip-instance
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-03-24 |
| First published | 2020-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | instance, class, object, strip |

## Links

- npm: https://www.npmjs.com/package/strip-instance
- Repository: https://github.com/Richienb/strip-instance
- npm.io page: https://npm.io/package/strip-instance

## Dependencies (3)

- [is-obj](https://npm.io/package/is-obj.md) ^2.0.0
- [map-obj](https://npm.io/package/map-obj.md) ^4.1.0
- [@sindresorhus/is](https://npm.io/package/@sindresorhus/is.md) ^2.1.0

## Recent versions

- 1.0.0 (latest) — 2020-03-24

## README

# strip-instance [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/strip-instance/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/strip-instance)

Remove class instances from objects.

[![NPM Badge](https://nodei.co/npm/strip-instance.png)](https://npmjs.com/package/strip-instance)

## Install

```sh
npm install strip-instance
```

## Usage

```js
const stripInstance = require("strip-instance");

const someClass = new (class SomeClass {
	constructor() {
		this.value = "a";
	}
})();

console.log(someClass);
//=> SomeClass { value: "a" }

stripInstance(someClass);
//=> { value: "a" }
```

## API

### stripInstance(object)

#### object

Type: `object or class instance`

The object to strip.

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