uri-scheme
Interact with native URI schemes
Last updated 10 days ago by dsokal .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install uri-scheme -g
SYNC missed versions from official npm registry.

???? Welcome to
uri-scheme

Interact with native URI schemes

Circle CI


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.io/' });

⚙️ Options

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

Options Description
-V, --version output the version number
-h, --help output usage information

add

Add URI schemes to a native app.

Options

Options Description
-a, --android Apply action to Android
-i, --ios Apply 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-run View the proposed change
-h, --help output usage information

Examples

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

remove

Remove URI schemes from a native app

Options

Options Description
-a, --android Apply action to Android
-i, --ios Apply 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-run View the proposed change
-h, --help output usage information

Examples

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

open

Open a URI scheme in a running simulator or emulator

Options

Options Description
-a, --android Apply action to Android
-i, --ios Apply action to iOS
--package <string> The Android package name to use when opening in an emulator
-h, --help output usage information

Examples

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

list

List the existing URI scheme prefixes for a native app

Options:

Options Description
-a, --android Apply action to Android
-i, --ios Apply 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, --help output 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.


License: MIT

Current Tags

  • 1.0.61-alpha.0                                ...           alpha (3 days ago)
  • 1.0.60                                ...           latest (10 days ago)

63 Versions

  • 1.0.61-alpha.0                                ...           3 days ago
  • 1.0.60                                ...           10 days ago
  • 1.0.60-alpha.0                                ...           11 days ago
  • 1.0.59                                ...           a month ago
  • 1.0.58                                ...           a month ago
  • 1.0.57                                ...           a month ago
  • 1.0.56                                ...           2 months ago
  • 1.0.55                                ...           2 months ago
  • 1.0.54                                ...           2 months ago
  • 1.0.53                                ...           2 months ago
  • 1.0.52                                ...           2 months ago
  • 1.0.51                                ...           2 months ago
  • 1.0.50                                ...           2 months ago
  • 1.0.49                                ...           2 months ago
  • 1.0.48                                ...           2 months ago
  • 1.0.47                                ...           2 months ago
  • 1.0.46                                ...           2 months ago
  • 1.0.45                                ...           3 months ago
  • 1.0.44                                ...           3 months ago
  • 1.0.43                                ...           3 months ago
  • 1.0.42                                ...           3 months ago
  • 1.0.41                                ...           3 months ago
  • 1.0.40                                ...           4 months ago
  • 1.0.39                                ...           4 months ago
  • 1.0.38                                ...           4 months ago
  • 1.0.37                                ...           4 months ago
  • 1.0.36                                ...           4 months ago
  • 1.0.35                                ...           4 months ago
  • 1.0.34                                ...           4 months ago
  • 1.0.33                                ...           4 months ago
  • 1.0.32                                ...           4 months ago
  • 1.0.31                                ...           5 months ago
  • 1.0.30                                ...           5 months ago
  • 1.0.29                                ...           5 months ago
  • 1.0.28                                ...           5 months ago
  • 1.0.27                                ...           5 months ago
  • 1.0.26                                ...           5 months ago
  • 1.0.25                                ...           6 months ago
  • 1.0.24                                ...           6 months ago
  • 1.0.23                                ...           7 months ago
  • 1.0.22                                ...           7 months ago
  • 1.0.21                                ...           7 months ago
  • 1.0.20                                ...           7 months ago
  • 1.0.19                                ...           7 months ago
  • 1.0.18                                ...           7 months ago
  • 1.0.17                                ...           8 months ago
  • 1.0.16                                ...           8 months ago
  • 1.0.15                                ...           8 months ago
  • 1.0.14                                ...           8 months ago
  • 1.0.13                                ...           8 months ago
  • 1.0.12                                ...           8 months ago
  • 1.0.11                                ...           8 months ago
  • 1.0.10                                ...           8 months ago
  • 1.0.9                                ...           9 months ago
  • 1.0.9-alpha.0                                ...           9 months ago
  • 1.0.8                                ...           9 months ago
  • 1.0.7                                ...           9 months ago
  • 1.0.6                                ...           9 months ago
  • 1.0.5                                ...           9 months ago
  • 1.0.4                                ...           9 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           9 months ago
  • 1.0.0                                ...           10 months ago
Downloads
Today 0
This Week 18
This Month 35
Last Day 2
Last Week 16
Last Month 98
Dependencies (0)
None
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |