2.2.92 • Published 1 year ago

@erboladaiorg/at-repudiandae v2.2.92

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@erboladaiorg/at-repudiandae 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 @erboladaiorg/at-repudiandae

Usage

const { grabValue, grabPath } = require("@erboladaiorg/at-repudiandae");

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("@erboladaiorg/at-repudiandae");

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!'
jsnamesinternal slotdeterministictypesuperagentwafstructuredCloneargvsignednodeextendObject.assignspectrimStartmruObjectpasswordschemaimportBigInt64Arraycryptotyped arrayObject.entriestoArrayserverextradataes-abstractmacosformatsetImmediatetc390expressvariables in cssstable.gitignoreartwindowsoptimizerreact animationECMAScript 5weakmapgdprsuperstructprotobufoptimisthookformpersistentuninstallESnextpoint-freeastcloudsearchendpointbundlinganimationtypeerrorgitignoreinferencefront-endjoieslintconfiglivesafeshimoutputSystem.globalformattingtypesparserenvironmentsvestcallbackfunction.lengthcontainsString.prototype.trimserviceECMAScriptredirecthelper@@toStringTaghttpscachecallbindequalWeakMapglacierreact posecolorinputUint8ArraywarningponyfillconsoleclassnameminimalramdaMapttyES8settingstranspileselftypedarrayaccessorTypedArrayTypeScriptauthenticationconcatcloudfrontfull-widthequalityformsomeURLSearchParamscharactervalidatorcheckrulescoreposebindES2022inspecttestingtelephoneregexpjson-schema-validatorpyyamlmakeconcatMapprototypeinternalestreeflatlocaldotenvstringtoolkitcensorprivatehashArray.prototype.flatbundlermatchAllawsvisualECMAScript 2022statelessReactiveXiammetadataUint8ClampedArrayelasticacheparseflagspropertysymbolargsstyleguideslicevarjsonschemacss nestingprefixbounddatastructuregraphqlcss lesswhichdescriptormatchsharedarraybufferreact-hook-form[[Prototype]]regular-expressionclassesfpeventDispatchervaluesmkdirsglobalECMAScript 2021forEachlogpushform-validationobjectSetpolyfillreact-hookssidelinkbyteLengthloadingless cssforkurlbinpreprocessorcollection.es6util.inspectformses2018amazoncompile lessECMAScript 2023bddmapstartergroupByRxJScolumnsECMAScript 7256figletcss variableconsumestreamRegExp.prototype.flagsdefinecomparebinarieszxclassnamesserializedom-testing-libraryxhrtddrequestplugincloudtrailespreeprogressfindeventsWeakSettypedarraysstringifierreal-timesesES2018jsxenvtypeofeslint-pluginECMAScript 2016babel-coreUnderscorepackage.jsonglobal this valueutilssetPrototypeOfstatethreediffes5japanesesignalslintsqsdirjson-schema-validationprettykoreanstylesheetpruneexecutel10nHyBiconfigurablegetOwnPropertyDescriptorgetdescriptionescapetestes-shimsargumentreuselocationsyntaxmergeReactiveExtensionsstreamscomputed-typessymlinkspositiveworkspace:*workerisConcatSpreadableoperating-systemFunction.prototype.namedropspawnArray.prototype.filterfilterprotoMicrosoftECMAScript 2017asciiasyncECMAScript 2018functionsutili18nsymbolsObject.getPrototypeOfobjbyteweaksetwritableperformantmulti-packagetesterchromiumtextpreserve-symlinksassertioneslinta11yArray.prototype.findLastIndexcreatecoercibleassignbrowserslistomitString.prototype.matchAllmodulefastclonemkdirpio-tsless.jsmanagerquerystringzodAsyncIteratorpicomatchieenderES2023apideep-copydirectoryfastredux-toolkitelmxtermStreamsrdsInt8Arrayhigher-orderdeepWebSocketssignalnodejspostcss-plugingradients csswidthback-endrgbeveryRFC-6455Rxinstallless compilerfastcopyoptionStreamstoragegatewaycopyless mixinses2016unicodeefficientmovespinnersReflect.getPrototypeOfpatchclass-validatorObject.fromEntriesindicatorES2020react-componentarraybufferes6babelWebSocketes8.envObject.valueschineseexpressionpnpm9touchchannelmockloggerbrowserlistreplaySymbolinstallerstylingvaluefast-clonetslibdependencieswalkrequirereadnopetimelistenersbrowsermixins$.extendroute53make diransifast-deep-cloneexecletjsdiffcall-boundinvariantES2021slotstringifyserializationArray.prototype.flattenharmonycore-jssigtermdynamodbes-shim APIloadbalancingpredictableshebangerror-handlingimmercollectionmonorepodomawesomesauceeventEmitterpathtypescriptbufferES6quoteidletacitcallarrayvarschromefullfixed-widthbeanstalkacornconstconfig
2.2.92

1 year ago

2.2.91

1 year ago

2.2.90

1 year ago

2.2.89

1 year ago

2.2.88

1 year ago

2.2.87

1 year ago

2.2.86

1 year ago

2.2.85

1 year ago

2.2.84

1 year ago

2.2.83

1 year ago

2.2.82

1 year ago

2.2.81

1 year ago

2.2.80

1 year ago

2.2.79

1 year ago

2.2.78

1 year ago

2.2.77

1 year ago

2.2.76

1 year ago

2.2.75

1 year ago

2.2.74

1 year ago

2.2.73

1 year ago

2.2.72

1 year ago

2.2.71

1 year ago

2.2.70

1 year ago

2.2.69

1 year ago

2.2.68

1 year ago

2.2.67

1 year ago

2.2.66

1 year ago

2.2.65

1 year ago

2.2.64

1 year ago

2.2.63

1 year ago

2.1.63

1 year ago

2.1.62

1 year ago

2.1.61

1 year ago

2.1.60

1 year ago

2.1.59

1 year ago

2.1.58

1 year ago

2.1.57

1 year ago

2.1.56

1 year ago

2.1.55

1 year ago

2.1.54

1 year ago

2.1.53

1 year ago

2.1.52

1 year ago

2.1.51

1 year ago

2.1.50

1 year ago

2.1.49

1 year ago

2.1.48

1 year ago

2.1.47

1 year ago

2.1.46

1 year ago

2.1.45

1 year ago

2.1.44

1 year ago

2.0.44

1 year ago

2.0.43

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

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