Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-grep

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-grep - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

dist/index.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.sum=t():e.sum=t()}(self,(function(){return(()=>{"use strict";var e={138:(e,t,o)=>{function r(e,t,o=100,n="",u={}){return 0===o||(t||(t=String(t)),Object.keys(e).forEach((s=>{const i=n?`${n}.${s}`:s,p=e[s];s.match(t)&&(u.keys||(u.keys=[]),u.keys.push(i)),["string","number","boolean","undefined"].includes(typeof p)||null===p?String(p).match(t)&&(u.values||(u.values=[]),u.values.push(i)):r(p,t,o-1,i,u)}))),u}o.r(t),o.d(t,{objectGrep:()=>r}),r.inject=function(){Object.defineProperty(Object.prototype,"grep",{enumerable:!1,value:function(e,t){return r(this,e,t)}})}}},t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(138)})()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.objectGrep=t():e.objectGrep=t()}(this,(function(){return(()=>{"use strict";var e={138:(e,t,o)=>{function r(e,t,o=100,n="",u={}){return 0===o||(t||(t=String(t)),Object.keys(e).forEach((p=>{const c=n?`${n}.${p}`:p,i=e[p];p.match(t)&&(u.keys||(u.keys=[]),u.keys.push(c)),["string","number","boolean","undefined"].includes(typeof i)||null===i?String(i).match(t)&&(u.values||(u.values=[]),u.values.push(c)):r(i,t,o-1,c,u)}))),u}o.r(t),o.d(t,{objectGrep:()=>r}),r.inject=function(){Object.defineProperty(Object.prototype,"grep",{enumerable:!1,value:function(e,t){return r(this,e,t)}})}}},t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(138)})()}));
{
"name": "object-grep",
"version": "1.0.1",
"version": "1.1.0",
"description": "A tool for finding text in keys and content",

@@ -19,3 +19,3 @@ "main": "./dist/index.js",

"author": "ulitcos@gmail.com",
"license": "ISC",
"license": "MIT",
"bugs": {

@@ -22,0 +22,0 @@ "url": "https://github.com/ulitcos/object-grep/issues"

# object-grep
A tool for searching text in keys and content similar to linux grep
## install
```
npm i object-grep
```
## usage

@@ -5,0 +9,0 @@

@@ -8,5 +8,6 @@ const path = require('path');

filename: 'index.js',
library: 'sum',
library: 'objectGrep',
libraryTarget: 'umd',
globalObject: 'this'
}
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc