New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

misc-utils

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

misc-utils

Miscellaneous utility functions

latest
Source
npmnpm
Version
1.0.10
Version published
Maintainers
1
Created
Source

misc-utils

This is a compilation of utility functions written in ES6 that I've been updating as and when I run into a requirement that isn't covered by something readily available off-the-shelf. A layer on top of lodash is what it looks like for the most part.

Install

npm install --save misc-utils

Usage


import { isVoid, deepDiff } from 'misc-utils'
...
let styleX = {
  base: {
    margin: '0 auto'
    background: {
      color: 'white'
    }
  }
}
let styleY = {
  base: {
    margin: 'auto'
  },
  active: {
    width: '100%'
  }
}
let styleDiff = deepDiff(styleX,styleY)
if (!isVoid(styleDiff)) {
  console.log(styleDiff)
}

License

MIT © [Thomas Varghese] (https://github.com/numbervine)

FAQs

Package last updated on 25 Apr 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