
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
chrome-unmirror
Advanced tools
Transform mirror objects from a remote Chrome debugger into local values
Transform mirror objects from a remote Chrome debugger into local values.
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)
With npm do:
npm install chrome-unmirror
Unit tests are currently performed as part of the test suite of an external, unpublished module. Apologies.
MIT © ironSource.
FAQs
Transform mirror objects from a remote Chrome debugger into local values
The npm package chrome-unmirror receives a total of 1,432 weekly downloads. As such, chrome-unmirror popularity was classified as popular.
We found that chrome-unmirror demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.