5.11.96 • Published 1 year ago

@diotoborg/cumque-sequi v5.11.96

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

1 year ago

5.11.96

1 year ago

5.10.95

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

2 years ago

4.10.79

2 years ago

4.10.78

2 years ago

4.10.77

2 years ago

4.10.76

2 years ago

4.10.75

2 years ago

4.10.74

2 years ago

4.10.73

2 years ago

4.10.72

2 years ago

4.10.71

2 years ago

4.10.70

2 years ago

4.10.69

2 years ago

4.10.68

2 years ago

4.10.67

2 years ago

4.10.66

2 years ago

4.10.65

2 years ago

4.10.64

2 years ago

4.10.63

2 years ago

4.10.62

2 years ago

4.10.61

2 years ago

4.10.60

2 years ago

4.10.59

2 years ago

4.9.59

2 years ago

4.9.58

2 years ago

4.9.57

2 years ago

4.9.56

2 years ago

4.9.55

2 years ago

4.9.54

2 years ago

4.9.53

2 years ago

4.9.52

2 years ago

4.9.51

2 years ago

4.9.50

2 years ago

4.9.49

2 years ago

4.8.49

2 years ago

3.8.49

2 years ago

3.7.49

2 years ago

3.7.48

2 years ago

3.7.47

2 years ago

3.7.46

2 years ago

3.7.45

2 years ago

3.7.44

2 years ago

3.7.43

2 years ago

3.7.42

2 years ago

3.7.41

2 years ago

3.6.41

2 years ago

3.6.40

2 years ago

3.6.39

2 years ago

3.6.38

2 years ago

3.5.38

2 years ago

3.5.37

2 years ago

3.5.36

2 years ago

3.5.35

2 years ago

3.4.35

2 years ago

3.4.34

2 years ago

3.4.33

2 years ago

3.4.32

2 years ago

3.4.31

2 years ago

3.4.30

2 years ago

3.4.29

2 years ago

3.4.28

2 years ago

3.4.27

2 years ago

3.4.26

2 years ago

3.4.25

2 years ago

3.4.24

2 years ago

3.4.23

2 years ago

3.3.23

2 years ago

3.3.22

2 years ago

3.3.21

2 years ago

3.3.20

2 years ago

3.3.19

2 years ago

3.3.18

2 years ago

3.3.17

2 years ago

3.3.16

2 years ago

2.3.16

2 years ago

2.3.15

2 years ago

2.3.14

2 years ago

2.3.13

2 years ago

2.2.13

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago