Socket
Socket
Sign inDemoInstall

wlooker

Package Overview
Dependencies
1
Maintainers
1
Versions
347
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wlooker

Collection of routines to traverse complex data structure. The module takes care of cycles in a data structure( recursions ) and can be used for comparison, cloning, serialization or operation on several similar data structures. Many other modules based o


Version published
Weekly downloads
1.3K
increased by108.51%
Maintainers
1
Install size
2.19 MB
Created
Weekly downloads
 

Readme

Source

module::Looker status stable

Collection of routines to traverse complex data structure. The module takes care of cycles in a data structure( recursions ) and can be used for comparison, cloning, serialization or operation on several similar data structures. Many other modules based on this to traverse abstract data structures.

Relations diagram

The diagram above displays the connections between classes Looker, Replicator, Stringer, Selector, Resolver and Equaler. The solid lines indicate inheritance between classes, where the arrow indicates the parent class. The dashed lines indicate the use of classes, where the arrow indicates the class used by another. The diagram shows that Looker is the basic class, and it's inherited by others.

Sample


let structure =
{
  number : 1,
  string : 's',
  array : [ 1, { date : new Date() } ],
  routine : function(){},
  set : new Set([ 'a', 13 ]),
  hasmap : new HashMap([ [ 'a', 13 ], [ null, 0 ] ]),
}

_.look( structure, ( e, k, it ) => console.log( it.path ) );

/* output :
/
/number
/string
/array
/array/#0
/array/#1
/array/#1/date
/routine
/set
/set/a
/set/#1
/hasmap
/hasmap/a
/hasmap/#1
*/

Source

Try out from the repository

git clone https://github.com/Wandalen/wLooker
cd wLooker
will .npm.install
node sample/trivial/Sample.s

Make sure you have utility willbe installed. To install willbe: npm i -g willbe@stable. Willbe is required to build of the module.

To add to your project

npm add 'wlooker@stable'

Willbe is not required to use the module in your project as submodule.

Keywords

FAQs

Last updated on 25 Jul 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc