Gathering detailed insights and metrics for @visulima/object
Gathering detailed insights and metrics for @visulima/object
Gathering detailed insights and metrics for @visulima/object
Gathering detailed insights and metrics for @visulima/object
@visulima/inspector
Inspect utility for Node.js and Browsers.
@visulima/deep-clone
Fastest deep clone implementation.
@ffras4vnpm/enim-recusandae-assumenda
<p align="center"> <a href="https://visulima.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset=""> <img src="" height="128"> </picture> <h1 align="center">Visulima</h1> </a> </p>
@wemnyelezxnpm/nisi-sunt-vero
<p align="center"> <a href="https://visulima.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset=""> <img src="" height="128"> </picture> <h1 align="center">Visulima</h1> </a> </p>
npm install @visulima/object
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@visulima/package@3.2.0
Published on 16 Dec 2024
@visulima/cerebro@1.1.26
Published on 12 Dec 2024
@visulima/pail@2.1.12
Published on 12 Dec 2024
@visulima/api-platform@3.0.27
Published on 12 Dec 2024
@visulima/jsdoc-open-api@2.0.65
Published on 12 Dec 2024
@visulima/find-cache-dir@1.0.16
Published on 12 Dec 2024
TypeScript (91.8%)
JavaScript (5.89%)
MDX (1.66%)
Handlebars (0.39%)
CSS (0.14%)
Shell (0.12%)
Total Downloads
655
Last Day
2
Last Week
6
Last Month
90
Last Year
655
12 Stars
2,205 Commits
3 Forks
2 Watching
16 Branches
2 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.7
Package Id
@visulima/object@1.0.7
Unpacked Size
237.15 kB
Size
63.21 kB
File Count
19
NPM Version
9.6.7
Node Version
18.20.5
Publised On
12 Dec 2024
Cumulative downloads
Total Downloads
Last day
-33.3%
2
Compared to previous day
Last week
-92.7%
6
Compared to previous week
Last month
542.9%
90
Compared to previous month
Last year
0%
655
Compared to previous year
34
Helper functions for working with objects, build on top of
is-plain-obj, dot-prop, deeks and type-fest
Daniel Bannert's open source work is supported by the community on GitHub Sponsors
1npm install @visulima/object
1yarn add @visulima/object
1pnpm add @visulima/object
With pick
you pass an object and an array of keys of an object - the props which may stay.
1import { pick } from "@visulima/object"; 2 3const squirtle = { id: "007", name: "Squirtle", type: "water" }; 4 5const newObject = pick(squirtle, ["name", "type"]); 6// returns { name: 'Squirtle', type: 'water' } 7 8const doc = { items: { keep: "📌", discard: "✂️" } }; 9 10pick(doc, ["items.keep"]); 11// returns {items: {keep: '📌'}}
With omit
you pass an object and an array of keys of an object - the props which should be removed.
1import { omit } from "@visulima/object"; 2 3const squirtle = { id: "007", name: "Squirtle", type: "water" }; 4 5const withoutId = omit(squirtle, ["id"]); 6// returns { name: 'Squirtle', type: 'water' } 7 8const doc = { items: { keep: "📌", discard: "✂️" } }; 9 10omit(doc, ["items.discard"]); 11// returns {items: {keep: '📌'}}
Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.
If you would like to help take a look at the list of issues and check our Contributing guidelines.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
The visulima object is open-sourced software licensed under the MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
project has 6 contributing companies or organizations
Details
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
Reason
license file detected
Details
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
SAST tool detected: CodeQL
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Score
Last Scanned on 2024-12-18T11:24:37Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More