5.11.96 • Published 10 months ago

@diotoborg/cumque-sequi v5.11.96

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

10 months ago

5.11.96

10 months ago

5.10.95

10 months ago

5.10.94

10 months ago

5.10.93

10 months ago

5.10.92

10 months ago

5.10.91

10 months ago

5.10.90

10 months ago

5.10.89

10 months ago

4.10.89

10 months ago

4.10.88

10 months ago

4.10.87

10 months ago

4.10.86

10 months ago

4.10.85

10 months ago

4.10.84

10 months ago

4.10.83

10 months ago

4.10.82

10 months ago

4.10.81

11 months ago

4.10.80

11 months ago

4.10.79

11 months ago

4.10.78

11 months ago

4.10.77

11 months ago

4.10.76

11 months ago

4.10.75

11 months ago

4.10.74

11 months ago

4.10.73

11 months ago

4.10.72

11 months ago

4.10.71

11 months ago

4.10.70

11 months ago

4.10.69

11 months ago

4.10.68

11 months ago

4.10.67

11 months ago

4.10.66

11 months ago

4.10.65

11 months ago

4.10.64

11 months ago

4.10.63

11 months ago

4.10.62

11 months ago

4.10.61

11 months ago

4.10.60

11 months ago

4.10.59

11 months ago

4.9.59

11 months ago

4.9.58

11 months ago

4.9.57

11 months ago

4.9.56

11 months ago

4.9.55

11 months ago

4.9.54

11 months ago

4.9.53

11 months ago

4.9.52

12 months ago

4.9.51

12 months ago

4.9.50

12 months ago

4.9.49

12 months ago

4.8.49

12 months ago

3.8.49

12 months ago

3.7.49

12 months ago

3.7.48

12 months ago

3.7.47

12 months ago

3.7.46

12 months ago

3.7.45

12 months ago

3.7.44

12 months ago

3.7.43

12 months ago

3.7.42

12 months ago

3.7.41

12 months ago

3.6.41

12 months ago

3.6.40

12 months ago

3.6.39

12 months ago

3.6.38

12 months ago

3.5.38

12 months 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