Installations
npm install @ladjs/pick-original
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=18
Node Version
18.20.4
NPM Version
10.7.0
Score
67.9
Supply Chain
84.9
Quality
82.9
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (93.21%)
Shell (6.79%)
Developer
Download Statistics
Total Downloads
7,514
Last Day
6
Last Week
21
Last Month
121
Last Year
2,036
GitHub Statistics
1 Stars
19 Commits
2 Watching
1 Branches
5 Contributors
Bundle Size
70.59 kB
Minified
24.70 kB
Minified + Gzipped
Package Meta Information
Latest Version
2.0.0
Package Id
@ladjs/pick-original@2.0.0
Unpacked Size
7.64 kB
Size
3.45 kB
File Count
16
NPM Version
10.7.0
Node Version
18.20.4
Publised On
20 Aug 2024
Total Downloads
Cumulative downloads
Total Downloads
7,514
Last day
-45.5%
6
Compared to previous day
Last week
0%
21
Compared to previous week
Last month
-38.9%
121
Compared to previous month
Last year
32.6%
2,036
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
@ladjs/pick-original
Transform an Object that was transformed to return only the original properties recursively picked if they are not undefined.
Table of Contents
Install
npm:
1npm install @ladjs/pick-original
Usage
1const pickOriginal = require('@ladjs/pick-original'); 2 3function createObj(doc) { 4 doc.id = Date.now().toString(); 5 return doc; 6} 7 8const original = { foo: 'bar' }; 9 10const transformed = pickOriginal(createObj(original), original); 11 12console.log(transformed); 13 14// { foo: 'bar' }
Contributors
Name |
---|
Titanism |
License
MIT © Titanism
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/ladjs/.github/SECURITY.md:1
- Info: Found linked content: github.com/ladjs/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/ladjs/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/ladjs/.github/SECURITY.md:1
Reason
Found 0/19 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/ladjs/pick-original/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/ladjs/pick-original/ci.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:24
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
4.1
/10
Last Scanned on 2025-01-27
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