gm

gyp-merge

The data structure merging algortithms used in evaluating includes and conditions in gyp files.

Showing:

Popularity

Downloads/wk

830

GitHub Stars

0

Maintenance

Last Commit

3yrs ago

Contributors

2

Package

Dependencies

0

Size (min+gzip)

0.5KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gyp-merge

This module implements the data structure merging algortithms used in evaluating includes and conditions in gyp files.

Usage

var gypMerge = require('gyp-merge')({noSingletons: false});

console.log(gypMerge.mergeDictionary(
    {a: 1, b: 2, c: [3, 4, 5]},
    {a: 6, b: 7, "d+": [8, 9, 10]}
));

The extra () is configuration. Right now, the only option is { noSingletons: true }, which disables the "singleton" behavior when merging lists, keeping order but eliding duplicates.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100