chrome-unmirror

2018-11-09 admin

chrome-unmirror是什么

什么是chrome-unmirror,Transform mirror objects from a remote Chrome debugger into local values

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.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-44977.html

文章标题:chrome-unmirror

回到顶部