Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

forest

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forest - npm Package Compare versions

Comparing version 0.0.1 to 0.16.0

forest.cjs.d.ts

54

package.json

@@ -1,9 +0,47 @@

{
"name" : "forest",
"version" : "0.0.1",
"description" : "A collection of tree implementations. SplayTree, FusionTree, BTree, etc.",
"author" : "hij1nx <hij1nx@nodejitsu.me>",
"contributors" : [ "hij1nx <hij1nx@nodejitsu.me>" ],
"main" : "lib/index.js",
"engines" : { "node" : "*" }
{
"name": "forest",
"version": "0.16.0",
"description": "UI engine for web",
"main": "forest.cjs.js",
"module": "forest.es.js",
"umd:main": "forest.umd.js",
"jsnext:main": "forest.es.js",
"typings": "index.d.ts",
"dependencies": {},
"peerDependencies": {
"effector": "^20.15.6"
},
"keywords": [
"data",
"effect",
"event",
"functional",
"reactive",
"state manager",
"state-manager",
"state",
"store",
"dom",
"view"
],
"author": "Zero Bias",
"maintainers": [
{
"name": "Zero Bias",
"email": "ribkatt@gmail.com"
}
],
"sideEffects": false,
"license": "MIT",
"devDependencies": {},
"scripts": {},
"repository": "https://github.com/zerobias/effector",
"bugs": "https://github.com/zerobias/effector/issues",
"homepage": "https://effector.now.sh",
"engines": {
"node": ">=6.0.0"
},
"publishConfig": {
"access": "public"
}
}

@@ -1,8 +0,48 @@

## Node Forrest
Node Forrest is a collection of tree implementations.
# forest
### Splay Tree
A splay tree is a self-balancing binary search tree with the additional property that recently accessed elements are quick to access again. It performs basic operations such as insertion, look-up and removal in O(log(n)) amortized time.
## UI engine for web
### Fusion Treei
This is next on the list to implement.
### Usage
```js
import {createStore, createEvent} from 'effector'
import {using, spec, list, h} from 'forest'
using(document.body, () => {
const addLine = createEvent()
const code = createStore(['let foo = 0']).on(addLine, list => [
...list,
`foo += ${Math.random()}`,
])
const color = createStore('cornsilk').on(addLine, color => {
switch (color) {
case 'cornsilk':
return 'aliceblue'
case 'aliceblue':
return 'cornsilk'
}
})
h('section', () => {
spec({
style: {
backgroundColor: color,
padding: '1em',
},
})
list(code, ({store}) => {
h('div', {text: store})
})
})
h('section', {
data: {section: 'controls'},
fn() {
h('button', {
handler: {click: addLine},
text: 'Add line',
style: {padding: '1em'},
})
},
})
})
```
lib/index.js
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