Gathering detailed insights and metrics for @lambrioanpm/quibusdam-officiis-occaecati
Gathering detailed insights and metrics for @lambrioanpm/quibusdam-officiis-occaecati
npm install @lambrioanpm/quibusdam-officiis-occaecati
Typescript
Module System
Node Version
NPM Version
53.1
Supply Chain
48.1
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
692
Last Day
2
Last Week
6
Last Month
17
Last Year
692
MIT License
2,351 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Feb 12, 2025
Latest Version
1.0.0
Package Id
@lambrioanpm/quibusdam-officiis-occaecati@1.0.0
Unpacked Size
16.59 kB
Size
6.51 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.2
Published on
Apr 25, 2024
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
-14.3%
6
Compared to previous week
Last Month
325%
17
Compared to previous month
Last Year
0%
692
Compared to previous year
19
Set and get values on objects via dot-notation strings.
1var deep = require('@lambrioanpm/quibusdam-officiis-occaecati'); 2 3var obj = { 4 foo: { 5 bar: 'baz', 6 'bar.baz': 'qux' 7 } 8}; 9 10// Get 11console.log(deep(obj, 'foo.bar')); 12 // => "baz" 13 14// Get with array 15console.log(deep(obj, ['foo', 'bar.baz'])); 16 // => "qux" 17 18// Set 19deep(obj, 'foo.bar', 'hello'); 20console.log(obj.foo.bar); 21 // => "hello" 22 23// Set with array 24deep(obj, ['foo', 'bar.baz'], 'goodbye'); 25console.log(obj.foo['bar.baz']); 26 // => "goodbye"
Where path
is a dot-notation string foo.bar
or an array of strings.
value
is passed it will be set on the path.deep.p = true
if you want non-existent paths to be initialized.undefined
as the value
.With npm do:
1npm install @lambrioanpm/quibusdam-officiis-occaecati
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:
MIT
No vulnerabilities found.
No security vulnerabilities found.