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

Commit

Permalink
Update name and setup publish (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Feb 5, 2018
1 parent 839feb5 commit 4d48747
Show file tree
Hide file tree
Showing 7 changed files with 368 additions and 27 deletions.
24 changes: 17 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
language: node_js
node_js:
- 9
- 9
branch:
only:
- master
install:
- npm install
script:
- npm run build
- npm run tslint

install:
- npm install

script:
- npm run build
- npm run tslint
deploy:
provider: npm
tag: next
email: tiguerin@microsoft.com
api_key:
secure: a4RaA+Wva7aLYO2Zul6ax3yeCQqZF+ZnwfzJ3XeoMHSyE5yHok92Fkt3fv1Q7u6T7VREElnRVRRHz/Ziu/ri6PmajjktmsjZA1TUvA6uvZRejqtJM0z13s7/XF7AgS7sfUSH5f3vm7EVt4FbqoNOliXLi00PJ3Eqw2b/4qKzIKW3bxiou89dsZxwh01YRQjuELjj2sxcecRY4eBCgZ3u5oniP4Tl0SA8kMu5fQ6WUCLP4ohtDtJb6cdCt+UhkJivFZNc2VIPdBqdXUERy7TZQGiaZ/HpgH4Txi4doxjNt5yu2mwren0CBpnkSJSU+IvxHMFj7fya4B1zmp1vaFUm1J/Q3jDVLOXQ2u06QDppeIneU/YuEbOEPR29nUPRXkBbpni5javXTcLC2c1J3tPvuUvCW/MCEanfISlpzfiqMnOPBluY7Djxb2a2TiitOraHtwaXKXzXmAF/0fnDpP9SuLeL1KoFR2H47CbEgPtwtZLUb3GSx/jV35N2yKZ3wUjbdnD88LHXZFV+g23oqyecqJO8emvlMyb6f2Y+kijk8Bdw51Mayl4HYy8ybRY+P4BdT1AQWRqzXoaOxfuHRS5hUlKESYpgb/rLLJedMm9LMUhO5An6fBAcT0WeC+xetcoD9H/7rtpI6cwasJvGybtyaDIxRx7SpyV3RW3XFUWqP1I=
on:
tags: true
17 changes: 12 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# System Proxy
[![Build Status](https://travis-ci.org/Azure/get-proxy-settings.svg?branch=master)](https://travis-ci.org/Azure/get-proxy-settings)
[![npm version](https://badge.fury.io/js/get-proxy-settings.svg)](https://badge.fury.io/js/get-proxy-settings)

This library will read the system proxy setttings and return.
It will first try to read from the environment variable `HTTP_PROXY` and `HTTPS_PROXY`
On windows it will then look at the internet settings in the registry.

## Install

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

**Import**
```js
import getSystemProxy from "system-prooxy";
// or with named import
import { getSystemProxy } from "system-prooxy";
// Default import
import getProxySettings from "get-proxy-settings";
// With named import
import { getProxySettings } from "get-proxy-settings";

// Or with commonjs
const getSystemProxy = require("system-prooxy");
const getProxySettings = require("get-proxy-settings");
```

**Use**
```js

async function my() {
const proxy = await getSystemProxy();
const proxy = await getProxySettings();
console.log("proxy", proxy.http, proxy.https);
}
```
Expand Down
Loading

0 comments on commit 4d48747

Please sign in to comment.