uri-scheme
Interact with native URI schemes
Last updated 6 days ago by brentvatne .
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.22                                ...           latest (6 days ago)

23 Versions

  • 1.0.22                                ...           6 days ago
  • 1.0.21                                ...           8 days ago
  • 1.0.20                                ...           13 days ago
  • 1.0.19                                ...           14 days ago
  • 1.0.18                                ...           17 days ago
  • 1.0.17                                ...           a month ago
  • 1.0.16                                ...           a month ago
  • 1.0.15                                ...           a month ago
  • 1.0.14                                ...           2 months ago
  • 1.0.13                                ...           2 months ago
  • 1.0.12                                ...           2 months ago
  • 1.0.11                                ...           2 months ago
  • 1.0.10                                ...           2 months ago
  • 1.0.9                                ...           2 months ago
  • 1.0.9-alpha.0                                ...           2 months ago
  • 1.0.8                                ...           2 months ago
  • 1.0.7                                ...           2 months ago
  • 1.0.6                                ...           2 months ago
  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 15
Last Month 48
Dependencies (0)
None
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |