npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@lambrioanpm/quibusdam-officiis-occaecati

v1.0.0

Published

Set and get values on objects via dot-notation strings.

Downloads

7

Maintainers

duchoang1212zzduchoang1212zz

Keywords

ECMAScript 2021mobilenodejscolumnflatsortedRxassertssearchbatchfullbytediffES8phoneexeObject.definePropertybuffersjsdomsigtermponyfillprocessencryptionframeworkreadablestreamtypewatcherdeep-cloneECMAScript 2019iterationeslintconfigsignalsopenerlesscsspreprocessorjscallbindtoSortedArraypreserve-symlinksarraycoreArray.prototype.findLastpackagehttpspostcsstypedarrayhookformeventEmitterES2015omitenvnopestylesheetTypeBoxconststylesdescriptionpushefficientthroatfixed-widthserializationES2021ObjectlanguagequotebreaklinuxmergewatchingIteratorrm -frcharacterreact animationcode pointschromiumchaitoolkites7jsonpathinternalmodulesloggerStreamsframerless.jsnameswgetfaststartjson-schema-validationbabel-corefantasy-landdeleteAsyncIteratorECMAScript 6fast-deep-clonetraverseJSON-SchemalockfilevalidationspeedcallbackstringifyWeakSetdependency managerpackagesuuidObject.keysdescriptorsutilitiesfindschemeless mixinsCSSStyleDeclarationmodulees5Object.isdatastructureformdebugreal-timeArrayBufferspawnwatchsidepuretestlaunchyamlES2018tacitreact posecompilertypesafeperformantjapaneseautoprefixer$.extendargscss-in-jsoptimizercore-jsjson-schema-validatorString.prototype.trimsetbundlerinterruptstoobjectexpressuninstallbootstrap csscolorsschemaWebSocketsES2019parsecontainserror-handlinges2017promiseregulartestingesnodees2015trimLeftgesturesprogressserializestyled-componentsmacosObject.entriescommandestreeexit-codeprototypeArray.prototype.flat__proto__ESnextcoercibleindicatoriteratordeepiteratecollection.es6karmaecmascriptpolyfillECMAScript 2023toStringTagassignincludesvariables in cssasciifilemochatypesa11ymkdirconcurrencyconnectwritelookgetPrototypeOfworkspace:*ECMAScript 2022Pushperformancelastupoptioncjkvalidatorprotocol-buffersenumerableless cssUint32Arraymomentsymbolslinewrapcall-boundcalllessPromiseregexpwaapiworkerfast-cloneTypedArraychromeeslint-pluginjasmineregular expressionreact-testing-libraryvaluebusysyntaxfile systemRegExp.prototype.flagsECMAScript 2016bannerdragdom-testing-libraryttyhigher-orderES2020chineseclientspringsetImmediatetelephonermtrimRightonceargparsedataViewmetadataprettymapeditorgroupBystartercopyprivate dataargvwindowsmake dirlibphonenumbervalidateSetwritablewalktypedeveryvalidflagidfullwidthSymbol.toStringTagwidthtypaniontextless compilerjson-schemalruinferenceoperating-systemirqfast-deep-copystyle256transpilerES5parentscolumnsvestgradients css3findLastsliceunicodegetoptArray.prototype.containsregexjQuerymimetypesremoveYAMLisConcatSpreadableBigInt64Arrayes2018Uint8ClampedArray[[Prototype]]rfc4122dotenvWebSocketajaxArray.prototype.includesdateinstalldefaultxdgtranspileHyBihashinspectArray.prototype.flattenUint16ArraypipetddES3apolloObservableECMAScript 2018form-validationtypeerrorinstalleres8Object.getPrototypeOfappread0typeoftslibwordwrapexecutablegenericsbootstrap lesssignalramdaspecawesomesaucemrurm -rfstatuscmdObject.assignes-abstractreduceauthbrowserslistpasswordconfigurablecompile lesstoolscircularrecursiveInt8ArraystringifierreadablefastcopyprotobufqueueReactiveExtensionssettingsxssthrottleFloat32ArraycharactersintrinsicmonorepomimearraybufferprotoObject.fromEntriesstringparentrequestArray.prototype.findLastIndexoutputcheckJSONreactInt32ArrayqueryweaksetwatchFilefigletBigUint64ArraydataviewurlURLlogginghandlerstapehttpgetintrinsicmatchjsonjsxtshardlinksnativepersistentes6rangeerrorlazyidleUint8ArraystylingexecimportwebECMAScript 3spinnerutilsredux-toolkitlinkobjectdirbdddeepcopyl10nMapshellboundlogfpviewvaluesequalityairbnbcommand-linesequencestyleguidebcryptdeep-copyeslintplugineast-asian-widthwrapemitkeymime-dbredacthasOwnasyncfromloadingrgbruntimeformstoArrayexpressionpathString.prototype.matchAllargumentcurlxtermpropertiesqsbrowserlistECMAScript 5ES2022typedarraysrequiredependenciesbundlingratetc39trimEndyup.envfilterobjUnderscoreinternal slotjestaccessibilitybyteOffsetzeroconfigcollectionqueueMicrotaskinputnested cssURLSearchParamserrortyped arraystable3dECMAScript 2020finduppruneprefixcommanderObservablesarktypestreamscss lesslengthmakecorspoint-freefolderentriesweakmaparraysxdg-opentapReactiveXMicrosoftauthenticationoffsetfsjsdiffapiawaitserializerdirectorytrimansidomletconsoleArrayBuffer.prototype.slicenamesomenumberlimitextrasymlinkshebanggdprconcatresolvenegative zeropicomatchclassnameswhichlintxhrCSSanimationpositivereact-hook-formeventsmovesymlinksclassespromisesvisualquerystringclass-validator6to5hookssetPrototypeOfsuperstructflattenregular expressionscss nestingsuperagentdefinePropertycompareeslintelectronRxJSstatelesscurrieddropkoreanflatMapbyteLengthsafeopenreduxgraphqlmatchAllES2016classnameavafastifyaccessortouchbluebirdsanitizationes-shimscreateguidgetOwnPropertyDescriptorfunctionsECMAScript 2015formattinguser-streamsvariablesmkdirppyyamlnpmWeakMapjoicssdebuggerjavascriptcodesstreams2ECMAScript 7escaperandom

Readme

@lambrioanpm/quibusdam-officiis-occaecati

Set and get values on objects via dot-notation strings.

Example

var deep = require('@lambrioanpm/quibusdam-officiis-occaecati');

var obj = {
  foo: {
    bar: 'baz',
    'bar.baz': 'qux'
  }
};

// Get
console.log(deep(obj, 'foo.bar'));
  // => "baz"

// Get with array
console.log(deep(obj, ['foo', 'bar.baz']));
  // => "qux"

// Set
deep(obj, 'foo.bar', 'hello');
console.log(obj.foo.bar);
  // => "hello"

// Set with array
deep(obj, ['foo', 'bar.baz'], 'goodbye');
console.log(obj.foo['bar.baz']);
  // => "goodbye"

API

deep(object, path[, value])

Where path is a dot-notation string foo.bar or an array of strings.

  • If value is passed it will be set on the path.
  • Set deep.p = true if you want non-existent paths to be initialized.
  • If you want to unset (or delete), pass undefined as the value.

Installation

With npm do:

npm install @lambrioanpm/quibusdam-officiis-occaecati

Note

There's a dozen modules like this on npm. This is a fork from @juliangruber's deep-access module, with a big portion of code directly copied from here: https://github.com/substack/js-traverse/blob/master/index.js#L11-L18.

Similar modules:

  • https://github.com/deoxxa/dotty (this one I like because it uses recursion)
  • https://github.com/Ntran013/dot-access (pretty much the same as this)
  • https://github.com/substack/js-traverse (much more complex and useful)

License

MIT