gyp-merge

0.3.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    2
  • 0.2.1
    734
  • 0.2.0
    17
  • 0.1.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i gyp-merge

Weekly Downloads

753

Version

0.3.0

License

ISC

Unpacked Size

6.06 kB

Total Files

6

Last publish

Collaborators

  • aredridel