8.9.92 • Published 12 months ago

@diotoborg/soluta-numquam-ipsam v8.9.92

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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

12 months ago

7.9.92

12 months ago

7.9.91

1 year ago

7.9.90

1 year ago

7.8.90

1 year ago

7.8.89

1 year ago

7.8.88

1 year ago

7.8.87

1 year ago

7.8.86

1 year ago

7.8.85

1 year ago

7.8.84

1 year ago

7.8.83

1 year ago

7.8.82

1 year ago

7.8.81

1 year ago

7.8.80

1 year ago

7.8.79

1 year ago

6.8.79

1 year ago

6.8.78

1 year ago

6.8.77

1 year ago

5.8.77

1 year ago

5.7.77

1 year ago

5.7.76

1 year ago

5.6.76

1 year ago

5.6.75

1 year ago

5.6.74

1 year ago

5.6.73

1 year ago

5.6.72

1 year ago

5.6.71

1 year ago

5.5.71

1 year ago

5.5.70

1 year ago

5.5.69

1 year ago

5.5.68

1 year ago

5.5.67

1 year ago

4.5.67

1 year ago

4.5.66

1 year ago

4.5.65

1 year ago

4.5.64

1 year ago

4.5.63

1 year ago

4.5.62

1 year ago

4.4.62

1 year ago

4.4.61

1 year ago

4.4.60

1 year ago

4.4.59

1 year ago

4.4.58

1 year ago

4.4.57

1 year ago

4.4.56

1 year ago

4.4.55

1 year ago

4.4.54

1 year ago

4.3.54

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

4.3.48

1 year ago

4.3.47

1 year ago

4.3.46

1 year ago

4.3.45

1 year ago

4.3.44

1 year ago

4.3.43

1 year ago

4.3.42

1 year ago

4.3.41

1 year ago

4.3.40

1 year ago

4.3.39

1 year ago

4.3.38

1 year ago

4.3.37

1 year ago

4.3.36

1 year ago

4.3.35

1 year ago

4.3.34

1 year 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