8.9.92 • Published 10 months ago

@diotoborg/soluta-numquam-ipsam v8.9.92

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@diotoborg/soluta-numquam-ipsam npm NPM Downloads

Grab Wizard is a lightweight JavaScript package for navigating and retrieving values from nested data structures.

Install

You can install the package using npm:

npm install @diotoborg/soluta-numquam-ipsam

Usage

const { grabValue, grabPath } = require("@diotoborg/soluta-numquam-ipsam");

var person = {
  firstName: "Ali",
  lastName: "Parsa",
  age: 21,
  info: {
    address: {
      city: 'New York',
      zip: '10001',
    }
  }
};

console.log(grabValue(person, "info.city", "default value")) //=> 'New Yourk'
console.log(grabPath(person, "info.city", "default value")) //=> '.info.address.city' 

Example

You can grab value or path without select parents:

const { grabValue, grabPath } = require("@diotoborg/soluta-numquam-ipsam");

var sample_1 = {
  firstName: "Ali",
  lastName: "Parsa",
  age: 21,
  info: {
    address: {
      city: 'New York',
      zip: '10001',
    }
  }
};

var sample_2 = {
  firstName: "Ali",
  lastName: "Parsa",
  age: 21,
  info: {
    location: {
      city: 'Canada',
      zip: '10001',
    }
  }
};

console.log(grabValue(sample_1, "info.city")) //=> 'New York'
console.log(grabPath(sample_2, "info.city")) //=> '.info.address.city'

console.log(grabValue(sample_2, "info.city")) //=> 'Canada'
console.log(grabPath(sample_2, "info.city")) //=> '.info.location.city'

console.log(grabValue(sample_2, "info.wrong","not found!")) //=> 'not found!'
executeindicatorES2015fastcopyansiexecObject.isschemafnmatchparseES3ES2023cjkisapollotrimRightcolorspropscheme-validationkeyentriesbcryptmatchAlles-abstractwalkidlebrowserglobalThisES8ignorepureroutingmatchpicomatchdragsignalconcatrangeerrorstatusInt8Arrayio-tsUint8ArraytrimjshintsymlinkESnextawesomesaucewgethelperseslintfindLastIndexcontainsbundlinguninstallcommandArray.prototype.flatqueueMicrotaskieArray.prototype.filterruntimereact-testing-libraryclassnameclass-validatorgenericsenvfilefullwidthrecursiveenumerableside6to5touchmake dirsymbolsSymbolloggerArrayBuffer#slicecallboundexit-codeeast-asian-widthshebangimmerrulescloudfrontFunction.prototype.nameES7varoutputwaapiutilsremovebrowserlisthas-ownpinoprogressreact-componentgloballrufigletObject.entriesexecfileamazon@@toStringTagformsdefinePropertyhot256ES5logobjworkerJSONchannelfastifyeventsimportnumberpathdeletekoreanassignpostcss-pluginconsoleutilitiesclientpersistentsymlinksinspectArray.prototype.includesprettyStyleSheetimmutable__proto__es2015Streamscall-boundstringifymetadatarfc4122redactcloudformationobjectcallbindvarsbinariesi18nhashcompile lessspinnerarraybuffervalidatorwidthuuidreusetesterauthFloat32ArrayelmmakenamestypedcryptdeepcopyReflect.getPrototypeOfefficientgetintrinsicfindLasttoArraywafshrinkwrapCSSStyleDeclarationRegExp.prototype.flagsYAMLartequalpasswordcss-in-jsECMAScript 3parseraccessorwhichemrfile systemuploadsettingseffect-tsgesturesmaptrimLefttypedarraydirdynamodbescapesignedeventEmitterhookformmacosredux-toolkitdatecommanderairbnbString.prototype.matchAllaccessibilitybufferrequestdeterministicflattencheckconsumetelephone.envcomputed-typesprivate dataiterateargvsomewritezoddataViewcliURLSearchParamsES2016letECMAScript 2018testingES2018ECMAScript 2021Int16Arraypackagesform-validationlanguagecoreselfnodejsassertionquoteqsWebSocketslibphonenumberwaitpolyfillacornRxJSrgbeslintconfigcharacteruser-streamsprotocol-bufferssubprocessjestlogginginputinternalES2019columnxhrexpresscommand-linetoolstoobjectmkdirkinesissequencecacheJSON-Schemacssdescriptoriteratorstringifierpackage managerArray.prototype.findLastextendECMAScript 2022toStringTaghooksauthenticationchildWeakSethasOwnPropertystructuredCloneenvironmentsgroupByyupvpcwhatwgcloudwatchgetoptjsglobalsimportexportjavascriptenderguidcalllessECMAScript 2016multi-packageES2020binerror-handlingeventDispatchershimcallbacksyntaxfastspecWeakMaparraysspeedajaxArray.prototype.containsurlgradients cssdependencies-0typed arraydescriptionstringHyBiflatfunction.lengthstarternodeformatvestpostcssstylespinnerscodescircularrfc9562ECMAScripteverysortedebsmobileformlengthreversedreadablecss nestingpredictablepropertieslesscssloadingiamhttpsfast-cloneES2022slottypesafeemitES6simpledbtoReversed
8.9.92

10 months ago

7.9.92

10 months ago

7.9.91

10 months ago

7.9.90

10 months ago

7.8.90

10 months ago

7.8.89

10 months ago

7.8.88

10 months ago

7.8.87

10 months ago

7.8.86

10 months ago

7.8.85

10 months ago

7.8.84

10 months ago

7.8.83

10 months ago

7.8.82

10 months ago

7.8.81

10 months ago

7.8.80

10 months ago

7.8.79

10 months ago

6.8.79

10 months ago

6.8.78

10 months ago

6.8.77

10 months ago

5.8.77

11 months ago

5.7.77

11 months ago

5.7.76

11 months ago

5.6.76

11 months ago

5.6.75

11 months ago

5.6.74

11 months ago

5.6.73

11 months ago

5.6.72

11 months ago

5.6.71

11 months ago

5.5.71

11 months ago

5.5.70

11 months ago

5.5.69

11 months ago

5.5.68

11 months ago

5.5.67

11 months ago

4.5.67

11 months ago

4.5.66

11 months ago

4.5.65

11 months ago

4.5.64

11 months ago

4.5.63

11 months ago

4.5.62

11 months ago

4.4.62

11 months ago

4.4.61

11 months ago

4.4.60

11 months ago

4.4.59

11 months ago

4.4.58

11 months ago

4.4.57

11 months ago

4.4.56

11 months ago

4.4.55

11 months ago

4.4.54

11 months ago

4.3.54

11 months ago

4.3.53

12 months ago

4.3.52

12 months ago

4.3.51

12 months ago

4.3.50

12 months ago

4.3.49

12 months ago

4.3.48

12 months ago

4.3.47

12 months ago

4.3.46

12 months ago

4.3.45

12 months ago

4.3.44

12 months ago

4.3.43

12 months ago

4.3.42

12 months ago

4.3.41

12 months ago

4.3.40

12 months ago

4.3.39

12 months ago

4.3.38

12 months ago

4.3.37

12 months ago

4.3.36

12 months ago

4.3.35

12 months ago

4.3.34

12 months ago

4.3.33

1 year ago

4.3.32

1 year ago

4.3.31

1 year ago

4.3.30

1 year ago

4.3.29

1 year ago

3.3.29

1 year ago

3.3.28

1 year ago

3.3.27

1 year ago

3.2.27

1 year ago

3.2.26

1 year ago

3.2.25

1 year ago

3.2.24

1 year ago

3.2.23

1 year ago

3.2.22

1 year ago

3.2.21

1 year ago

3.2.20

1 year ago

3.2.19

1 year ago

3.2.18

1 year ago

3.2.17

1 year ago

3.2.16

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago