5.11.96 • Published 12 months ago

@diotoborg/cumque-sequi v5.11.96

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

@diotoborg/cumque-sequi 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/cumque-sequi

Usage

const { grabValue, grabPath } = require("@diotoborg/cumque-sequi");

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/cumque-sequi");

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!'
structuredClonelesscsspreserve-symlinksnested cssstringifierloggerstylespackage managerlinuxgdprvaluesvarstarterformhttpspackage.jsoncurriedprotobufReactiveXObject.definePropertylastanimationsymbolsTypeBoxpyyamlio-tsa11y256dataViewjsdifftypaniondeepsyntaxerrorcommanderless mixinsbrowsercensortraversecoredependency managerserializefull-widthsns[[Prototype]]replaystylingtermmobiletranspilertoolkitString.prototype.matchAllimmerbootstrap cssoperating-systemArray.prototype.findLastIndexdiffredirectflagsreusereact-testing-libraryansiiteratees2016css nestingjQueryfindLastObjectunicodeArrayBuffer.prototype.slicereact posemacostransportES7estreestringifyvisualascii3deffect-tscodesenvironmentsArrayBuffer#slicedom-testing-libraryes8terminallanguagecsseslintpluginwriteawsformattingObject.valuesspringsignalserrorperformanceTypedArraycallbindqueuezeroRegExp.prototype.flagsqspropertyviewspinnersequalityweakmaptoolsstyleFloat32ArraymatchAllaccessorintrinsiczxrapidenumerablecoerciblestylesheetdirectoryinvarianthttpcss-in-jsString.prototype.trimextendapisuperstructshebangphoneoptimizeres7trimLefttrimtoobjectforkpipeRegExp#flagslengthcolourdomfullastgesturesauthjoiquoteprotointernalmulti-packageeventsacornmergeesprocessperformantparsecallboundcolorwgetprototyperecursivetrimEndform-validationcheckbusystatefilehardlinksgradients css3reduxgenericsArray.prototype.filterjsonschemaescapecore-jsCSSStyleDeclarationArray.prototype.flates5uploadobjoptimistfpBigInt64ArraycallrequesttypescriptECMAScript 2015reducecolumnhelpersprivateagentdatastructuremovevarsfast-deep-clonetypejson-schemadescriptorexpresspatchreadablestreamback-endwritableindicatorefficientrequirefilterclassnamesglobalstestSetqueueMicrotaskdropObject.isInt32Array.gitignoredefinePropertyworkflowECMAScript 7constcloneregular-expressionendpointlrutypeerrorspinnerdragObject.assignargumentUnderscorecloudformationfindLastIndexeslintharmonyAsyncIteratorPusheveryeventDispatchertrimRightnpmsortenderESfpssymbolutilbyteLengthstreamsURLSearchParamsbuffersMicrosoftES2016metadatareducerautoscalingdescriptorsfigletflagbundlingletquerystringcryptoserverURLttynegative zeroapollocharacterECMAScript 2023xhrcommandECMAScript 2019weaksetcompareservicewindowbeanstalkUint8ClampedArraytypedarraypolyfillHyBisetenvironmentWebSocketarraymockingTypeScriptmapreduceruntimeES2022YAMLshamdataviewtoArrayless.jskeyES2023routeinstallerjsamazonassertwidthgroupSymbolpasswordidentifiersdependenciesclientcolumnscopyECMAScript 2020argsajaxmatchreactomitstablebddchildshellfetchglobincludesframerreact-hook-formpinoglobal objectmoduledeleteregular expressionprefixauthenticationzod$.extendObject.getPrototypeOftyped arrayes-shim API6to5binaryBigUint64ArrayeventEmitterajves2015routing__proto__s3css lessES8fnmatchinterruptselasticachehotschemefast-deep-copycall-bindstyleguidees2017tacitcloudwatchIteratorprotocol-buffersshimECMAScriptArray.prototype.containsconcatMapsetPrototypeOfchromiumemitcircularirqpathlockfilethreeECMAScript 6gitignorebootstrap lessjsongroupByvariables in cssexecfilejapanesegetOwnPropertyDescriptorlazyforEachespreeWeakMapxtermFloat64Arraydescriptionasyncsignedreadroute53handlersinspectswfes2018superagentiambabelhasWebSocketspositiveECMAScript 2018handlerES3nopechineseInt8ArrayES6json-schema-validationmonorepoloadbalancingmake dirpredictableUint32Array-0sigtermdefinefindargvglacierArray.prototype.includesencryptionsesmrusetImmediateownstringES2020utilityiterationuninstallsharedschemainputcontainses-shimsArrayBufferentriesreact animationistestingecmascriptbufferredux-toolkittimecurltc39ES2019ECMAScript 2021namefile systemflatsymlinkeast-asian-widthfluxfast-copystatuspersistentdircompilerfastclonedatajsxStyleSheetfixed-widthwhichgradients cssArray.prototype.flattenmkdirless compilerliveRFC-6455consumeposeregularmodulesESnexthookformawesomesaucecacheoffsetlessglobalclitoStringTagjshinthooksspectypedarraysselfignorestoragegatewayequalmanagercreatebinariesreadablesequenceworkspace:*optionloggingutilitiesES5queryoncehelperexecramdamockArray.prototype.findLastCSSdeterministicfunctionalkoreanObservablepropES2015picomatchdatearraysstyled-componentspluginidleworkerkinesispopmotionconfigurableObject.keysstreambundlerflattenwalkgraphqlsafegetintrinsicnodejsnegativerobustfast-clonees-abstractcss variablechromesigintwarning_.extendtelephoneless cssobjectimmutablecompile lessdeep-copywaapigetPrototypeOfinstallReflect.getPrototypeOfpushmixinsprivate dataPromisefsRxrandomECMAScript 2022autoprefixerdayjsutilsparserdynamodb0emrelectrontestercollectionrgbbyteelbnpmignoreinvestaccessibilityprogressreal-timetsboundsliceairbnbextraclassesfunctionsjestWeakSetsubprocesscommand-linenamesyamlRxJSinferenceurlebsiteratorsqsregexplibphonenumberexit-codeserializationcloudfrontnativenodeeslintconfigserializeryupvalidwafassignmatchestypedJSONchairedact.envcertificatestddmomentwaitpreprocessorbrowserslistl10nSystem.globalarktypeprettyresolvebrowserlistartelmcolorsECMAScript 3shrinkwrappostcss-pluginsetterfromclassname@@toStringTagponyfillopensslECMAScript 2016listenersproxyexecutedeepclonesortedUint8ArrayjavascriptObservablessameValueZerovalueisConcatSpreadableuser-streamstslibbanneriechannelimporttranspileexpressionsimpledbtostringtagsyntaxpostcssarraybuffertouchhashflatMapspawnglobal this valuehasOwnPropertyspeederror-handlingfront-endsettingsconsoleconfig
5.10.96

12 months ago

5.11.96

12 months ago

5.10.95

12 months ago

5.10.94

1 year ago

5.10.93

1 year ago

5.10.92

1 year ago

5.10.91

1 year ago

5.10.90

1 year ago

5.10.89

1 year ago

4.10.89

1 year ago

4.10.88

1 year ago

4.10.87

1 year ago

4.10.86

1 year ago

4.10.85

1 year ago

4.10.84

1 year ago

4.10.83

1 year ago

4.10.82

1 year ago

4.10.81

1 year ago

4.10.80

1 year ago

4.10.79

1 year ago

4.10.78

1 year ago

4.10.77

1 year ago

4.10.76

1 year ago

4.10.75

1 year ago

4.10.74

1 year ago

4.10.73

1 year ago

4.10.72

1 year ago

4.10.71

1 year ago

4.10.70

1 year ago

4.10.69

1 year ago

4.10.68

1 year ago

4.10.67

1 year ago

4.10.66

1 year ago

4.10.65

1 year ago

4.10.64

1 year ago

4.10.63

1 year ago

4.10.62

1 year ago

4.10.61

1 year ago

4.10.60

1 year ago

4.10.59

1 year ago

4.9.59

1 year ago

4.9.58

1 year ago

4.9.57

1 year ago

4.9.56

1 year ago

4.9.55

1 year ago

4.9.54

1 year ago

4.9.53

1 year ago

4.9.52

1 year ago

4.9.51

1 year ago

4.9.50

1 year ago

4.9.49

1 year ago

4.8.49

1 year ago

3.8.49

1 year ago

3.7.49

1 year ago

3.7.48

1 year ago

3.7.47

1 year ago

3.7.46

1 year ago

3.7.45

1 year ago

3.7.44

1 year ago

3.7.43

1 year ago

3.7.42

1 year ago

3.7.41

1 year ago

3.6.41

1 year ago

3.6.40

1 year ago

3.6.39

1 year ago

3.6.38

1 year ago

3.5.38

1 year ago

3.5.37

1 year ago

3.5.36

1 year ago

3.5.35

1 year ago

3.4.35

1 year ago

3.4.34

1 year ago

3.4.33

1 year ago

3.4.32

1 year ago

3.4.31

1 year ago

3.4.30

1 year ago

3.4.29

1 year ago

3.4.28

1 year ago

3.4.27

1 year ago

3.4.26

1 year ago

3.4.25

1 year ago

3.4.24

1 year ago

3.4.23

1 year ago

3.3.23

1 year ago

3.3.22

1 year ago

3.3.21

1 year ago

3.3.20

1 year ago

3.3.19

1 year ago

3.3.18

1 year ago

3.3.17

1 year ago

3.3.16

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

2.3.14

1 year ago

2.3.13

1 year ago

2.2.13

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago