Lex and npm

I've just added an initial version of Lex to Holster. It can only query properties on nodes at the moment, while I was working on it I had hopes that queries could be chained to do more interesting things, but that's going to be a lot of work! 😅

So for now lex needs to be added along with a callback for the data, not in a context chain. That allows queries like:

const nested = {
  key: "nested value",
  other: "other value"
}

holster.get("nested").put(nested, err => {
  holster.get("nested", {".": {"*": "k"}}, console.log)
  // logs: {key: "nested value"}
})

I think I'm also just ready to try using Holster from a real application and continue working on it as required from there. With that goal in mind I've also published Holster to npm! https://www.npmjs.com/package/@mblaney/holster

Time to switch gears and try building something with it.
Add a comment