📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

gyp-merge

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gyp-merge

Functions to merge data structures from gyp files

0.3.0
latest
Source
npm
Version published
Weekly downloads
834
-23.7%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 16 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts