New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bfs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfs

Find the path of a value in a complex JavaScript object graph/tree

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

bfs Latest version Monthly downloads Install size Bundle size

Find the path of a value in a complex JavaScript object graph/tree.

This module is BFS (Breadth-first Search) as a debugging tool to help with quickly understanding the relationships within an object tree/graph.

If you like this project, please star it & follow me to see what other cool projects I'm working on! ❤️

🚦 Quick Setup

In a local project

npm i --no-save bfs
import BFS from 'bfs';

// Search the global scope for all properties that have the MAX_SAFE_INTEGER value
BFS(global, Number.MAX_SAFE_INTEGER);

In browser dev-tools

const { default: BFS } = await import('//unpkg.com/bfs/dist/bfs.esm.js');

// Search the global scope for all properties that have the MAX_SAFE_INTEGER value
BFS(global, Math.max);

In non ESM environments

(function (cb) {
    var s = document.createElement('script')
    s.src = '//unpkg.com/bfs'
    s.onload = cb
    document.head.appendChild(s)
})(function () {

	// Search the global scope for all properties that have the MAX_SAFE_INTEGER value
    BFS(global, Number.MAX_SAFE_INTEGER);
})

⚙️ Options

  • timeout (10000)
  • maxFinds (100)
  • silenceErrors (true)

Keywords

FAQs

Package last updated on 28 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc