1.2.2 • Published 8 months ago

uri-scheme v1.2.2

Weekly downloads
1,897
License
MIT
Repository
github
Last release
8 months ago

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)

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.io --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.


1.3.0

8 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.121

3 years ago

1.0.120

3 years ago

1.0.118

3 years ago

1.0.117

3 years ago

1.0.119

3 years ago

1.0.116

3 years ago

1.0.115

3 years ago

1.0.107

4 years ago

1.0.109

4 years ago

1.0.108

4 years ago

1.0.110

3 years ago

1.0.112

3 years ago

1.0.111

3 years ago

1.0.114

3 years ago

1.0.113

3 years ago

1.0.106

4 years ago

1.0.103

4 years ago

1.0.105

4 years ago

1.0.104

4 years ago

1.0.100

4 years ago

1.0.102

4 years ago

1.0.99

4 years ago

1.0.98

4 years ago

1.0.96

4 years ago

1.0.95

4 years ago

1.0.94

4 years ago

1.0.93

4 years ago

1.0.92

4 years ago

1.0.91

4 years ago

1.0.90

4 years ago

1.0.89

4 years ago

1.0.88

4 years ago

1.0.87

4 years ago

1.0.86

4 years ago

1.0.85

4 years ago

1.0.84

4 years ago

1.0.83

4 years ago

1.0.82

4 years ago

1.0.81

4 years ago

1.0.77

4 years ago

1.0.76

4 years ago

1.0.75

4 years ago

1.0.74

4 years ago

1.0.79

4 years ago

1.0.78

4 years ago

1.0.80

4 years ago

1.0.73

4 years ago

1.0.72

4 years ago

1.0.71

4 years ago

1.0.70

4 years ago

1.0.69

4 years ago

1.0.68

4 years ago

1.0.68-alpha.0

4 years ago

1.0.67

4 years ago

1.0.66

4 years ago

1.0.66-alpha.0

4 years ago

1.0.65

4 years ago

1.0.64

4 years ago

1.0.63

4 years ago

1.0.62

4 years ago

1.0.61

4 years ago

1.0.61-alpha.0

4 years ago

1.0.60

4 years ago

1.0.60-alpha.0

4 years ago

1.0.59

4 years ago

1.0.58

4 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.19

5 years ago

1.0.20

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.9-alpha.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago