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

uri-scheme

Package Overview
Dependencies
Maintainers
27
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uri-scheme

Interact with native URI schemes

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by16.44%
Maintainers
27
Weekly downloads
Ā 
Created
Source

šŸ‘‹ Welcome to
uri-scheme

Interact with native URI schemes

This package provides a simple interface for modifying, viewing, and testing a project's native URI schemes.

šŸ‘‹ Notice: This package is not limited to Expo projects! You can use it with any iOS, or Android project.

šŸ¤” Why?

We created uri-scheme to make it easier to setup, test, and modify deep links, and authentication in native apps.

šŸš€ Usage

CLI

# Usage
npx uri-scheme [options] [command]

# View all URIs for a project
npx uri-scheme list

# Open a URI in a simulator
npx uri-scheme open <uri> --ios

# Add a URI to your project
npx uri-scheme add <uri>

Node

In order to make this package fast with npx we don't ship types or doc-blocks.

import { Android, Ios } from 'uri-scheme';

Ios.openAsync({ uri: 'http://expo.dev/' });

āš™ļø Options

For more information run npx uri-scheme --help (or -h)

OptionsDescription
-V, --versionoutput the version number
-h, --helpoutput usage information

add

Add URI schemes to a native app.

Options

OptionsDescription
-a, --androidApply action to Android
-i, --iosApply action to iOS
-n, --name <string>Name to use on iOS.
-r, --role <string>Role to use on iOS: Editor, Viewer
--manifest-path <string>Custom path to use for an Android project's AndroidManifest.xml
--info-path <string>Custom path to use for an iOS project's Info.plist
--dry-runView the proposed change
-h, --helpoutput usage information

Examples

  • uri-scheme add com.app
  • uri-scheme add myapp

remove

Remove URI schemes from a native app

Options

OptionsDescription
-a, --androidApply action to Android
-i, --iosApply action to iOS
--manifest-path <string>Custom path to use for an Android project's AndroidManifest.xml
--info-path <string>Custom path to use for an iOS project's Info.plist
--dry-runView the proposed change
-h, --helpoutput usage information

Examples

  • uri-scheme remove com.app
  • uri-scheme remove myapp

open

Open a URI scheme in a running simulator or emulator

Options

OptionsDescription
-a, --androidApply action to Android
-i, --iosApply action to iOS
--package <string>The Android package name to use when opening in an emulator
-h, --helpoutput usage information

Examples

  • uri-scheme open com.app://oauth --ios
  • uri-scheme open http://expo.dev --android

list

List the existing URI scheme prefixes for a native app

Options:

OptionsDescription
-a, --androidApply action to Android
-i, --iosApply action to iOS
--manifest-path <string>Custom path to use for an Android project's AndroidManifest.xml
--info-path <string>Custom path to use for an iOS project's Info.plist
-h, --helpoutput usage information

License

The Expo source code is made available under the MIT license. Some of the dependencies are licensed differently, with the BSD license, for example.

Keywords

FAQs

Package last updated on 20 Nov 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