Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.
ipldPublic archive

About

No description or website provided.

Topics

Resources

Stars

6 stars

Watchers

17 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

IPLD Selectors

This project is no longer under active development and has been archived. See https://ipld.io for information on the current state of IPLD selectors.

Usage

This selector actually implements multiple strategies:

  • glob
  • regex

See the examples for better introduction

.which(strategy, cid, selector, callback)

Which returns which subsets of the graphs have been matched.

Qml1..
{ name: "Jeromy", nick: "whyrusleeping"}

Qml2
{ name: "Juan", nick: "jdag"}

Qml3
{
  name: "Nicola",
  friends: [
    {'/': "Qml1.."},
    {'/': "Qml2.."}
  ]
}
.which('regex', cid3, '.*/name', callback)
//[ 'friends/0/name', 'friends/1/name' ]
.which('glob', cid3, '**/name', callback)
//[ 'friends/0/name', 'friends/1/name' ]

License

MIT

About

No description or website provided.

Topics

Resources

Stars

6 stars

Watchers

17 watching

Forks

Releases

Packages

Contributors

Languages