1. chrome-unmirror
Transform mirror objects from a remote Chrome debugger into local values
chrome-unmirror
Package: chrome-unmirror
Created by: ironSource
Last modified: Fri, 23 Sep 2022 21:41:30 GMT
Version: 0.1.0
License: MIT
Downloads: 5,784
Repository: https://github.com/ironSource/node-chrome-unmirror

Install

npm install chrome-unmirror
yarn add chrome-unmirror

chrome-unmirror

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

npm status node

example

 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 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 © ironSource.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code