UNPKG

728 BMarkdownView Raw
1# ember-source-channel-url
2
3Retrieve a URL that can be used to reference a tarball representing the latest
4`ember-source` build for that channel.
5
6## Usage
7
8### Command Line API
9
10```
11npx ember-source-channel-url canary
12```
13
14Will print out:
15
16```sh
17The URL for the latest tarball from ember-source's canary channel is:
18
19 https://s3.amazonaws.com/builds.emberjs.com/canary/shas/<RANDOM SHA HERE>.tgz
20```
21
22If you'd like to update `ember-source` in your `package.json` with the new URL, you can use the `--write` option:
23
24```
25npx ember-source-channel-url canary --write
26```
27
28### Programmatic API
29
30```js
31const getURLFor = require('ember-source-channel-url');
32
33getURLFor('canary').then((url) => {
34 // use the URL here
35});
36```