Skip to content

aredridel/gyp-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published