Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@react-native-community/cli-config
Advanced tools
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
@react-native-community/cli-config is a part of the React Native CLI tools that helps in configuring and managing React Native projects. It provides functionalities to customize the behavior of the React Native CLI, manage project settings, and streamline the development workflow.
Customizing CLI Configuration
This feature allows you to customize the React Native CLI configuration by specifying paths, assets, and dependencies. The code sample demonstrates how to set the path to the React Native library, include custom assets, and configure platform-specific dependencies.
module.exports = {
reactNativePath: './node_modules/react-native',
assets: ['./assets/fonts/'],
dependencies: {
'react-native-some-library': {
platforms: {
ios: null,
},
},
},
};
Managing Project Settings
This feature allows you to manage project settings such as resolver configurations. The code sample shows how to extend the default configuration to include additional source file extensions.
const { getDefaultConfig } = require('@react-native-community/cli-config');
module.exports = {
...getDefaultConfig(__dirname),
resolver: {
sourceExts: ['jsx', 'js', 'ts', 'tsx'],
},
};
react-native-config allows you to manage environment-specific configurations in React Native projects. It provides a way to define and access environment variables, which can be useful for managing different settings for development, staging, and production environments. Unlike @react-native-community/cli-config, which focuses on CLI customization, react-native-config is more about managing environment variables.
react-native-dotenv is a Babel plugin that lets you import environment variables from a .env file into your React Native project. It simplifies the process of managing environment-specific settings. While @react-native-community/cli-config deals with CLI and project configuration, react-native-dotenv is specifically designed for handling environment variables.
This package is part of the React Native CLI. It contains commands for managing the configuration of React Native app.
yarn add @react-native-community/cli-config
config
Usage:
npx react-native config
Output project and dependencies configuration in JSON format to stdout. Used by autolinking.
FAQs
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
The npm package @react-native-community/cli-config receives a total of 1,458,006 weekly downloads. As such, @react-native-community/cli-config popularity was classified as popular.
We found that @react-native-community/cli-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 34 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.