Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
axios-case-converter-updated
Advanced tools
Axios transformer/interceptor that converts snake_case/camelCase
Axios transformer/interceptor that converts snake_case/camelCase
data
params
object keys into snake_casedata
object keys into camelCaseheaders
object keys into Header-Caseheaders
object keys into camelCaseYou can fully use camelCase.
import applyConverters from 'axios-case-converter-updated';
import axios from 'axios';
(async () => {
const client = applyConverters(axios.create());
const { data } = await client.post(
'https://example.com/api/endpoint',
{
targetId: 1
},
{
params: { userId: 1 },
headers: { userAgent: 'Mozilla' }
}
);
console.log(data.actionResult.users[0].screenName);
})();
FormData
compatibilityIf you use FormData
on Internet Explorer or Safari, you need polyfill of FormData.prototype.entries()
.
If you use FormData
on React Native, please ignore the following warnings after confirming that polyfill is impossible.
// RN >= 0.52
import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings([
'Be careful that FormData cannot be transformed on React Native.'
]);
// RN < 0.52
console.ignoredYellowBox = [
'Be careful that FormData cannot be transformed on React Native.'
];
Symbol
compatibilityIf you use React Native for Android development, you should use Symbol polyfill from core-js
to avoid bugs with iterators:
polyfill.js
in root directory with code:global.Symbol = require('core-js/es6/symbol');
require('core-js/fn/symbol/iterator');
polyfill.js
in entry point of your app (e.g. app.js
):import { Platform } from 'react-native';
// ...
if (Platform.OS === 'android') {
require('./polyfill.js');
}
FAQs
Axios transformer/interceptor that converts snake_case/camelCase
We found that axios-case-converter-updated demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.