Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expo/config

Package Overview
Dependencies
Maintainers
28
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/config

A library for interacting with the app.json

  • 10.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4M
increased by2.57%
Maintainers
28
Weekly downloads
 
Created

What is @expo/config?

@expo/config is a package that provides utilities for reading, writing, and modifying Expo configuration files. It is particularly useful for managing app.json and app.config.js files in Expo projects.

What are @expo/config's main functionalities?

Reading Configuration

This feature allows you to read the configuration of an Expo project. The `getConfig` function reads the app.json or app.config.js file and returns the configuration object.

const { getConfig } = require('@expo/config');
const config = getConfig('/path/to/project');
console.log(config);

Modifying Configuration

This feature allows you to modify the configuration of an Expo project. The `modifyConfigAsync` function takes the path to the project and an object with the modifications you want to make.

const { modifyConfigAsync } = require('@expo/config');
(async () => {
  const result = await modifyConfigAsync('/path/to/project', {
    updates: {
      enabled: true
    }
  });
  console.log(result);
})();

Writing Configuration

This feature allows you to write a new configuration to the app.json file. The `writeConfigJsonAsync` function takes the path to the project and the new configuration object.

const { writeConfigJsonAsync } = require('@expo/config');
(async () => {
  const result = await writeConfigJsonAsync('/path/to/project', {
    name: 'NewAppName',
    slug: 'new-app-slug'
  });
  console.log(result);
})();

Other packages similar to @expo/config

Keywords

FAQs

Package last updated on 05 Dec 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc