Gathering detailed insights and metrics for record-tuple-convert
Gathering detailed insights and metrics for record-tuple-convert
Gathering detailed insights and metrics for record-tuple-convert
Gathering detailed insights and metrics for record-tuple-convert
Easily convert deep Objects and Arrays to Records and Tuples.
npm install record-tuple-convert
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
8 Commits
1 Branches
1 Contributors
Updated on Sep 26, 2021
Latest Version
0.0.4
Package Id
record-tuple-convert@0.0.4
Unpacked Size
4.91 kB
Size
2.18 kB
File Count
4
NPM Version
6.14.4
Node Version
12.16.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
As the record and tuple proposal is still in it's early stages, this package is not using a finalized API, so breaking changes might be frequent.
Since Babel still yet doesn't have a transform for Records and Tuples, you'll need to use @bloomberg/record-tuple-polyfill.
1const convertToRecord = require('record-tuple-convert').convertToRecord; 2const convertToTuple = require('record-tuple-convert').convertToTuple; 3 4// Convert simple objects 5convertToRecord({ foo: 'bar' }); // -> #{ foo: 'bar' } 6 7// Convert deep objects 8convertToRecord({ 9 foo: { 10 bar: 'baz' 11 } 12}); // #{ foo: #{ bar: 'baz' } } 13 14// Convert simple arrays 15convertToTuple(['foo', 'bar']); // -> #['foo', 'bar'] 16 17// Convert nth-dimensional arrays 18convertToTuple(['foo', ['bar', ['baz']]]); // -> #['foo', #['bar', #['baz']]] 19 20// Mix and match! 21 22convertToRecord({ foo: ['bar'], baz: true }); // -> #{ foo: #['bar'], baz: true } 23 24convertToTuple(['foo', { bar: 'baz' }]) // -> #['foo', #{ bar: 'baz' }]
This repo is open to issues and PRs, they are even encouraged!
To get setup, clone the repo, run npm install
and follow the instructions at @bloomberg/record-tuple-polyfill to install the polyfill.
To run the tests, run npm test
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
28 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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