1.0.8 • Published 6 years ago

@kingjs/descriptor.nested v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@kingjs/descriptor.nested

Exports all @kingjs/descriptor.nested.* functionality in one package.

Usage

var nested = require('@kingjs/descriptor.nested');

Interfaces

declare interface NestedDescriptor {
  [index: string | number]: NestedDescriptor
} | any

Remarks

A NestedDescriptor can be though of like

  • a tree composed of nodes and leafs or
  • a collection of paths composed of directories and files.

APIs take at least two descriptors. The first, a tree, is the data to be selected, mutated, or merged according to the second, a set of paths, which acts as metatdata to distinguish nodes from leafs in the tree as well as drive the operation.

Namespace

API

Install

With npm installed, run

$ npm install @kingjs/descriptor.nested

License

MIT

Analytics