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

code-push

Package Overview
Dependencies
Maintainers
11
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-push

Management SDK for the CodePush service

  • 4.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
128K
increased by4.79%
Maintainers
11
Weekly downloads
 
Created

What is code-push?

The code-push npm package is a service that enables React Native and Cordova developers to deploy mobile app updates directly to their users' devices. This allows for instant updates without requiring users to go through the app store update process.

What are code-push's main functionalities?

Release Updates

This feature allows developers to release updates to their apps. The `release` method takes parameters such as the app name, deployment name, update contents, target binary version, description, whether the update is mandatory, and the rollout percentage.

const codePush = require('code-push');

codePush.release(appName, deploymentName, updateContents, targetBinaryVersion, description, isMandatory, rolloutPercentage);

Check for Updates

This feature allows the app to check if there are any updates available. The `checkForUpdate` method takes a deployment key and returns a promise that resolves with the update information if an update is available.

const codePush = require('code-push');

codePush.checkForUpdate(deploymentKey).then((update) => {
  if (!update) {
    console.log('The app is up to date.');
  } else {
    console.log('An update is available: ' + update.description);
  }
});

Rollback Updates

This feature allows developers to rollback to a previous version of the app. The `rollback` method takes parameters such as the app name, deployment name, and target binary version.

const codePush = require('code-push');

codePush.rollback(appName, deploymentName, targetBinaryVersion);

Other packages similar to code-push

FAQs

Package last updated on 17 Jan 2023

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