# chrome-unmirror

> Transform mirror objects from a remote Chrome debugger into local values

Latest version **0.1.0** (published 2016-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install chrome-unmirror
pnpm add chrome-unmirror
yarn add chrome-unmirror
bun add chrome-unmirror
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-06-17 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vincent Weevers |
| Maintainers | ironsource, kessler, vweevers |
| Keywords | chrome, chromium, debugger, debugging |

## Links

- npm: https://www.npmjs.com/package/chrome-unmirror
- Repository: https://github.com/ironSource/node-chrome-unmirror
- Issues: https://github.com/ironSource/node-chrome-unmirror/issues
- npm.io page: https://npm.io/package/chrome-unmirror

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-06-17
- 0.0.6 — 2016-05-17

## README

# chrome-unmirror

**Transform mirror objects from a remote Chrome debugger into local values.**

[![npm status](http://img.shields.io/npm/v/chrome-unmirror.svg?style=flat-square)](https://www.npmjs.org/package/chrome-unmirror) [![node](https://img.shields.io/node/v/chrome-unmirror.svg?style=flat-square)](https://www.npmjs.org/package/chrome-unmirror)

## example

```js
const unmirror = require('chrome-unmirror')

const remoteObject
  = { type: 'object'
    , objectId: '{"injectedScriptId":1,"id":2}'
    , subtype: 'regexp'
    , className: 'RegExp'
    , description: '/flamingo/i'
    , preview:
        { type: 'object'
        , description: '/flamingo/i'
        , lossless: true
        , overflow: false
        , properties:
          [ { name: 'source', type: 'string', value: 'flamingo' }
          , { name: 'global', type: 'boolean', value: 'false' }
          , { name: 'ignoreCase', type: 'boolean', value: 'true' }
          , { name: 'multiline', type: 'boolean', value: 'false' }
          , { name: 'lastIndex', type: 'number', value: '0' } ]
        , subtype: 'regexp' } }

// Returns a RegExp instance: /flamingo/i
unmirror(remoteObject)
```

## install

With [npm](https://npmjs.org) do:

```
npm install chrome-unmirror
```

## tests

Unit tests are currently performed as part of the test suite of an external, unpublished module. Apologies.

## license

[MIT](http://opensource.org/licenses/MIT) © [ironSource](http://www.ironsrc.com/).

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