Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.

Commit 4d48747

Browse files
Update name and setup publish (#2)
1 parent 839feb5 commit 4d48747

7 files changed

Lines changed: 368 additions & 27 deletions

File tree

.travis.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
language: node_js
22
node_js:
3-
- 9
3+
- 9
4+
branch:
5+
only:
6+
- master
7+
install:
8+
- npm install
9+
script:
10+
- npm run build
11+
- npm run tslint
412

5-
install:
6-
- npm install
7-
8-
script:
9-
- npm run build
10-
- npm run tslint
13+
deploy:
14+
provider: npm
15+
tag: next
16+
email: tiguerin@microsoft.com
17+
api_key:
18+
secure: a4RaA+Wva7aLYO2Zul6ax3yeCQqZF+ZnwfzJ3XeoMHSyE5yHok92Fkt3fv1Q7u6T7VREElnRVRRHz/Ziu/ri6PmajjktmsjZA1TUvA6uvZRejqtJM0z13s7/XF7AgS7sfUSH5f3vm7EVt4FbqoNOliXLi00PJ3Eqw2b/4qKzIKW3bxiou89dsZxwh01YRQjuELjj2sxcecRY4eBCgZ3u5oniP4Tl0SA8kMu5fQ6WUCLP4ohtDtJb6cdCt+UhkJivFZNc2VIPdBqdXUERy7TZQGiaZ/HpgH4Txi4doxjNt5yu2mwren0CBpnkSJSU+IvxHMFj7fya4B1zmp1vaFUm1J/Q3jDVLOXQ2u06QDppeIneU/YuEbOEPR29nUPRXkBbpni5javXTcLC2c1J3tPvuUvCW/MCEanfISlpzfiqMnOPBluY7Djxb2a2TiitOraHtwaXKXzXmAF/0fnDpP9SuLeL1KoFR2H47CbEgPtwtZLUb3GSx/jV35N2yKZ3wUjbdnD88LHXZFV+g23oqyecqJO8emvlMyb6f2Y+kijk8Bdw51Mayl4HYy8ybRY+P4BdT1AQWRqzXoaOxfuHRS5hUlKESYpgb/rLLJedMm9LMUhO5An6fBAcT0WeC+xetcoD9H/7rtpI6cwasJvGybtyaDIxRx7SpyV3RW3XFUWqP1I=
19+
on:
20+
tags: true

Readme.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# System Proxy
2+
[![Build Status](https://travis-ci.org/Azure/get-proxy-settings.svg?branch=master)](https://travis-ci.org/Azure/get-proxy-settings)
3+
[![npm version](https://badge.fury.io/js/get-proxy-settings.svg)](https://badge.fury.io/js/get-proxy-settings)
4+
5+
This library will read the system proxy setttings and return.
6+
It will first try to read from the environment variable `HTTP_PROXY` and `HTTPS_PROXY`
7+
On windows it will then look at the internet settings in the registry.
28

39
## Install
410

@@ -10,19 +16,20 @@ npm install --save system-proxy
1016

1117
**Import**
1218
```js
13-
import getSystemProxy from "system-prooxy";
14-
// or with named import
15-
import { getSystemProxy } from "system-prooxy";
19+
// Default import
20+
import getProxySettings from "get-proxy-settings";
21+
// With named import
22+
import { getProxySettings } from "get-proxy-settings";
1623

1724
// Or with commonjs
18-
const getSystemProxy = require("system-prooxy");
25+
const getProxySettings = require("get-proxy-settings");
1926
```
2027

2128
**Use**
2229
```js
2330

2431
async function my() {
25-
const proxy = await getSystemProxy();
32+
const proxy = await getProxySettings();
2633
console.log("proxy", proxy.http, proxy.https);
2734
}
2835
```

0 commit comments

Comments
 (0)