├── .eslintrc ├── .github ├── FUNDING.yml └── workflows │ └── node.js.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── babel.config.js ├── examples ├── tree1.js ├── tree2.js ├── tree3.js └── tree4.js ├── package.json ├── src ├── extend.js ├── flatten.js ├── index.js └── node.js └── test ├── fixtures └── tree.json └── index.js /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/babel.config.js -------------------------------------------------------------------------------- /examples/tree1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/examples/tree1.js -------------------------------------------------------------------------------- /examples/tree2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/examples/tree2.js -------------------------------------------------------------------------------- /examples/tree3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/examples/tree3.js -------------------------------------------------------------------------------- /examples/tree4.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/examples/tree4.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/package.json -------------------------------------------------------------------------------- /src/extend.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/src/extend.js -------------------------------------------------------------------------------- /src/flatten.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/src/flatten.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/src/index.js -------------------------------------------------------------------------------- /src/node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/src/node.js -------------------------------------------------------------------------------- /test/fixtures/tree.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/test/fixtures/tree.json -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cheton/flattree/HEAD/test/index.js --------------------------------------------------------------------------------