chrome-unmirror

    0.1.0 • Public • Published

    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.

    Install

    npm i chrome-unmirror

    DownloadsWeekly Downloads

    2,755

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • ironsource
    • kessler
    • vweevers