Gathering detailed insights and metrics for camelcasetodjango
Gathering detailed insights and metrics for camelcasetodjango
Gathering detailed insights and metrics for camelcasetodjango
Gathering detailed insights and metrics for camelcasetodjango
npm install camelcasetodjango
Typescript
Module System
Node Version
NPM Version
70.8
Supply Chain
80.7
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
0%
1
Compared to previous week
Last month
-30.8%
9
Compared to previous month
Last year
-45.3%
619
Compared to previous year
This package was created as I needed a simple helper to switch json props notation type between front/backend. It takes JS object and changes it recursively from camel case notation (someName) to lowdash notation (some_name).
example:
var camelCaseToDjango = require('camelcasetodjango')
var obj = {
camelCase: 1,
camelCaseObject: {
camelCaseInside: 'test'
}
}
var result = camelCaseToDjango(obj)
/*
result is equal to:
{
camel_case: 1,
camel_case_object: {
camel_case_inside: 'test'
}
}
*/
1$ npm install -camelcasetodjango
There are few simple tests in 'test' folder. If you want to run it, you need to have Mocha and Chai installed.
1$ cd node_modules/camelcasetodjango 2$ npm install 3$ npm run test
camelCaseToDjango(obj, sign)
Sing parameter has a default value of "_" , so it is not required, but can pass it to the function if you want to use any other value. In test there is a case with sign = '+'. These feature was NOT deeply tested so, please verify expected result and let me know if you find any issues.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-16
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