├── .gitignore ├── .vscode └── settings.json ├── README.md ├── api.js ├── app.json ├── package-lock.json ├── package.json └── server.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "eslint.enable": false 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AMFI API 2 | 3 | Deploy 4 | 5 | 6 | AMFI is a nodal association of mutual funds across India. AMFI provides useful knowledge and insights regarding mutual funds and investments. For more information, visit https://www.amfiindia.com/. 7 | 8 | **Demo:** https://amfi-api.herokuapp.com/ 9 | 10 | This is a **Node.js + Express** API that tries to scrape what it can out of the AMFI daily text based data sources. 11 | The endpoints used for the daily NAV values are: https://www.amfiindia.com/spages/NAVAll.txt 12 | and for the historical NAV values: http://portal.amfiindia.com/DownloadNAVHistoryReport_Po.aspx?tp=1&frmdt=01-Oct-2018&todt=03-Oct-2018 13 | 14 | ***Please Note:*** There is a check in the code where I leave out all direct plans from the JSON. If you require that as well, please remove the conditional checking `&& !funds[i][3].includes("Direct")` in `line 17` of `api.js`. 15 | 16 | ## API Endpoints 17 | 18 | ### `/` - Daily NAV Values of All Mutual Funds 19 | Request: `http://localhost:8081/` 20 | Response: 21 | ``` 22 | [ 23 | { 24 | "Scheme Code": "108272", 25 | "ISIN Div Payout/ ISIN Growth": "INF209K01LX6", 26 | "ISIN Div Reinvestment": "INF209KA11Z3", 27 | "Scheme Name": "Aditya Birla Sun Life Banking & PSU Debt Fund - Regular Plan-Dividend", 28 | "Net Asset Value": "153.4764", 29 | "Date": "10-Oct-2018" 30 | }, 31 | { 32 | "Scheme Code": "108273", 33 | "ISIN Div Payout/ ISIN Growth": "INF209K01LV0", 34 | "ISIN Div Reinvestment": "-", 35 | "Scheme Name": "Aditya Birla Sun Life Banking & PSU Debt Fund - Regular Plan-Growth", 36 | "Net Asset Value": "226.6179", 37 | "Date": "10-Oct-2018" 38 | }, 39 | { 40 | "Scheme Code": "110282", 41 | "ISIN Div Payout/ ISIN Growth": "INF209K01LU2", 42 | "ISIN Div Reinvestment": "-", 43 | "Scheme Name": "Aditya Birla Sun Life Banking & PSU Debt Fund - Regular Plan-Monthly Dividend", 44 | "Net Asset Value": "104.4723", 45 | "Date": "10-Oct-2018" 46 | }, 47 | { 48 | "Scheme Code": "108274", 49 | "ISIN Div Payout/ ISIN Growth": "INF209K01LN7", 50 | "ISIN Div Reinvestment": "-", 51 | "Scheme Name": "Aditya Birla Sun Life Banking & PSU Debt Fund - Regular Plan-Quarterly Dividend", 52 | "Net Asset Value": "102.0788", 53 | "Date": "10-Oct-2018" 54 | }, 55 | ... 8000+ more objects] 56 | ``` 57 | 58 | -- 59 | 60 | ### `/:schemeCode` - Today's NAV Value of an Individual Mutual Fund 61 | Request: `http://localhost:8081/128953` 62 | Response: 63 | ``` 64 | { 65 | "Scheme Code": "128953", 66 | "ISIN Div Payout/ ISIN Growth": "INF846K01NG6", 67 | "ISIN Div Reinvestment": "-", 68 | "Scheme Name": "Axis Banking & PSU Debt Fund - Bonus Option", 69 | "Net Asset Value": "1289.4075", 70 | "Date": "18-May-2015" 71 | } 72 | ``` 73 | 74 | -- 75 | 76 | ### `/:startDate/:endDate` - Historical NAV Values of All Mutual Funds 77 | Request: `http://localhost:8081/01-Oct-2018/10-Oct-2018` 78 | Response: 79 | ``` 80 | [ 81 | { 82 | "Scheme Code": "101181", 83 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 84 | "Net Asset Value": "19.5266", 85 | "Repurchase Price": "", 86 | "Sale Price": "", 87 | "Date": "01-Oct-2018" 88 | }, 89 | { 90 | "Scheme Code": "101181", 91 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 92 | "Net Asset Value": "19.4949", 93 | "Repurchase Price": "", 94 | "Sale Price": "", 95 | "Date": "03-Oct-2018" 96 | }, 97 | { 98 | "Scheme Code": "101181", 99 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 100 | "Net Asset Value": "19.4780", 101 | "Repurchase Price": "", 102 | "Sale Price": "", 103 | "Date": "04-Oct-2018" 104 | }, 105 | { 106 | "Scheme Code": "101181", 107 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 108 | "Net Asset Value": "19.5355", 109 | "Repurchase Price": "", 110 | "Sale Price": "", 111 | "Date": "05-Oct-2018" 112 | }, 113 | { 114 | "Scheme Code": "101181", 115 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 116 | "Net Asset Value": "19.5661", 117 | "Repurchase Price": "", 118 | "Sale Price": "", 119 | "Date": "08-Oct-2018" 120 | }, 121 | { 122 | "Scheme Code": "101181", 123 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 124 | "Net Asset Value": "19.5315", 125 | "Repurchase Price": "", 126 | "Sale Price": "", 127 | "Date": "09-Oct-2018" 128 | }, 129 | ... 6000+ more objects] 130 | ``` 131 | 132 | -- 133 | 134 | ### `/:startDate/:endDate/:schemeCode` - Historical NAV Values of an Individual Mutual Fund 135 | Request: `http://localhost:8081/01-Oct-2018/10-Oct-2018/101181` 136 | Response: 137 | ``` 138 | [ 139 | { 140 | "Scheme Code": "101181", 141 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 142 | "Net Asset Value": "19.5266", 143 | "Repurchase Price": "", 144 | "Sale Price": "", 145 | "Date": "01-Oct-2018" 146 | }, 147 | { 148 | "Scheme Code": "101181", 149 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 150 | "Net Asset Value": "19.4949", 151 | "Repurchase Price": "", 152 | "Sale Price": "", 153 | "Date": "03-Oct-2018" 154 | }, 155 | { 156 | "Scheme Code": "101181", 157 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 158 | "Net Asset Value": "19.4780", 159 | "Repurchase Price": "", 160 | "Sale Price": "", 161 | "Date": "04-Oct-2018" 162 | }, 163 | { 164 | "Scheme Code": "101181", 165 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 166 | "Net Asset Value": "19.5355", 167 | "Repurchase Price": "", 168 | "Sale Price": "", 169 | "Date": "05-Oct-2018" 170 | }, 171 | { 172 | "Scheme Code": "101181", 173 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 174 | "Net Asset Value": "19.5661", 175 | "Repurchase Price": "", 176 | "Sale Price": "", 177 | "Date": "08-Oct-2018" 178 | }, 179 | { 180 | "Scheme Code": "101181", 181 | "Scheme Name": "JM Income Fund - Bonus Option - Principal Units", 182 | "Net Asset Value": "19.5315", 183 | "Repurchase Price": "", 184 | "Sale Price": "", 185 | "Date": "09-Oct-2018" 186 | } 187 | ] 188 | ``` 189 | -------------------------------------------------------------------------------- /api.js: -------------------------------------------------------------------------------- 1 | var express = require('express') 2 | var router = express.Router() 3 | 4 | const request = require('request') 5 | 6 | function parseRangeData(body) { 7 | fundData = [] 8 | bodyClean = body.replace(/\r?\n/g, "\n") 9 | bodyArr = bodyClean.split("\n") 10 | funds = bodyArr.map((str) => { 11 | return str.split(";") 12 | }) 13 | 14 | headers = funds[0] 15 | 16 | for (let i = 1; i < funds.length; i++) { 17 | if (funds[i].length === 8) { 18 | let obj = {} 19 | for (let j = 0; j < 8; j++) { 20 | if (j == 2 || j == 3 || j == 5 || j == 6) { 21 | continue; 22 | } 23 | obj[headers[j]] = funds[i][j] 24 | } 25 | fundData.push(obj) 26 | } 27 | } 28 | 29 | return fundData 30 | } 31 | 32 | function parseData(body) { 33 | fundData = [] 34 | bodyClean = body.replace(/\r?\n/g, "\n") 35 | bodyArr = bodyClean.split("\n") 36 | funds = bodyArr.map((str) => { 37 | return str.split(";") 38 | }) 39 | 40 | headers = funds[0] 41 | 42 | for (let i = 1; i < funds.length; i++) { 43 | if (funds[i].length === 6) { 44 | let obj = {} 45 | for (let j = 0; j < 6; j++) 46 | obj[headers[j]] = funds[i][j] 47 | fundData.push(obj) 48 | } 49 | } 50 | 51 | return fundData 52 | } 53 | 54 | router.get('/', function (req, res) { 55 | const url = 'https://www.amfiindia.com/spages/NAVAll.txt' 56 | 57 | request(url, function (error, response, body) { 58 | const fundData = parseData(body) 59 | 60 | res.json(fundData) 61 | }) 62 | }) 63 | 64 | router.get('/:schemeCode', function (req, res) { 65 | const url = 'https://www.amfiindia.com/spages/NAVAll.txt' 66 | 67 | request(url, function (error, response, body) { 68 | let fundData = parseData(body) 69 | 70 | fundData = fundData.filter((fund) => { 71 | if (fund['Scheme Code'] == req.params.schemeCode) 72 | return fund 73 | }) 74 | 75 | res.json(fundData[0]) 76 | }) 77 | }) 78 | 79 | router.get('/:startDate/:endDate', function (req, res) { 80 | const url = 'http://portal.amfiindia.com/DownloadNAVHistoryReport_Po.aspx?tp=1&frmdt=' + req.params.startDate + '&todt=' + req.params.endDate 81 | 82 | request(url, function (error, response, body) { 83 | const fundData = parseRangeData(body) 84 | 85 | res.json(fundData) 86 | }) 87 | }) 88 | 89 | router.get('/:startDate/:endDate/:schemeCode', function (req, res) { 90 | const url = 'http://portal.amfiindia.com/DownloadNAVHistoryReport_Po.aspx?tp=1&frmdt=' + req.params.startDate + '&todt=' + req.params.endDate 91 | 92 | request(url, function (error, response, body) { 93 | let fundData = parseRangeData(body) 94 | 95 | fundData = fundData.filter((fund) => { 96 | if (fund['Scheme Code'] == req.params.schemeCode) 97 | return fund 98 | }) 99 | 100 | res.json(fundData) 101 | }) 102 | }) 103 | 104 | module.exports = router 105 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AMFI API", 3 | "description": "AMFI is a nodal association of mutual funds across India.", 4 | "repository": "https://github.com/AmruthPillai/AMFI-API", 5 | "keywords": ["amfi", "india", "mutual funds", "nodejs", "express"] 6 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amfi-api", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "accepts": { 8 | "version": "1.3.5", 9 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", 10 | "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", 11 | "requires": { 12 | "mime-types": "~2.1.18", 13 | "negotiator": "0.6.1" 14 | } 15 | }, 16 | "array-flatten": { 17 | "version": "1.1.1", 18 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 19 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 20 | }, 21 | "asn1": { 22 | "version": "0.2.4", 23 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 24 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 25 | "requires": { 26 | "safer-buffer": "~2.1.0" 27 | } 28 | }, 29 | "assert-plus": { 30 | "version": "1.0.0", 31 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 32 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 33 | }, 34 | "asynckit": { 35 | "version": "0.4.0", 36 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 37 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 38 | }, 39 | "aws-sign2": { 40 | "version": "0.7.0", 41 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 42 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 43 | }, 44 | "aws4": { 45 | "version": "1.8.0", 46 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", 47 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" 48 | }, 49 | "bcrypt-pbkdf": { 50 | "version": "1.0.2", 51 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 52 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 53 | "optional": true, 54 | "requires": { 55 | "tweetnacl": "^0.14.3" 56 | } 57 | }, 58 | "body-parser": { 59 | "version": "1.18.3", 60 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", 61 | "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", 62 | "requires": { 63 | "bytes": "3.0.0", 64 | "content-type": "~1.0.4", 65 | "debug": "2.6.9", 66 | "depd": "~1.1.2", 67 | "http-errors": "~1.6.3", 68 | "iconv-lite": "0.4.23", 69 | "on-finished": "~2.3.0", 70 | "qs": "6.5.2", 71 | "raw-body": "2.3.3", 72 | "type-is": "~1.6.16" 73 | } 74 | }, 75 | "bytes": { 76 | "version": "3.0.0", 77 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", 78 | "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" 79 | }, 80 | "caseless": { 81 | "version": "0.12.0", 82 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 83 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 84 | }, 85 | "co": { 86 | "version": "4.6.0", 87 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 88 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" 89 | }, 90 | "combined-stream": { 91 | "version": "1.0.7", 92 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", 93 | "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", 94 | "requires": { 95 | "delayed-stream": "~1.0.0" 96 | } 97 | }, 98 | "content-disposition": { 99 | "version": "0.5.2", 100 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", 101 | "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" 102 | }, 103 | "content-type": { 104 | "version": "1.0.4", 105 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 106 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 107 | }, 108 | "cookie": { 109 | "version": "0.3.1", 110 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", 111 | "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" 112 | }, 113 | "cookie-parser": { 114 | "version": "1.4.3", 115 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.3.tgz", 116 | "integrity": "sha1-D+MfoZ0AC5X0qt8fU/3CuKIDuqU=", 117 | "requires": { 118 | "cookie": "0.3.1", 119 | "cookie-signature": "1.0.6" 120 | } 121 | }, 122 | "cookie-signature": { 123 | "version": "1.0.6", 124 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 125 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 126 | }, 127 | "core-util-is": { 128 | "version": "1.0.2", 129 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 130 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 131 | }, 132 | "dashdash": { 133 | "version": "1.14.1", 134 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 135 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 136 | "requires": { 137 | "assert-plus": "^1.0.0" 138 | } 139 | }, 140 | "debug": { 141 | "version": "2.6.9", 142 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 143 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 144 | "requires": { 145 | "ms": "2.0.0" 146 | } 147 | }, 148 | "delayed-stream": { 149 | "version": "1.0.0", 150 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 151 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 152 | }, 153 | "depd": { 154 | "version": "1.1.2", 155 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 156 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 157 | }, 158 | "destroy": { 159 | "version": "1.0.4", 160 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 161 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 162 | }, 163 | "ecc-jsbn": { 164 | "version": "0.1.2", 165 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 166 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 167 | "optional": true, 168 | "requires": { 169 | "jsbn": "~0.1.0", 170 | "safer-buffer": "^2.1.0" 171 | } 172 | }, 173 | "ee-first": { 174 | "version": "1.1.1", 175 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 176 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 177 | }, 178 | "encodeurl": { 179 | "version": "1.0.2", 180 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 181 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 182 | }, 183 | "escape-html": { 184 | "version": "1.0.3", 185 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 186 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 187 | }, 188 | "etag": { 189 | "version": "1.8.1", 190 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 191 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 192 | }, 193 | "express": { 194 | "version": "4.16.3", 195 | "resolved": "http://registry.npmjs.org/express/-/express-4.16.3.tgz", 196 | "integrity": "sha1-avilAjUNsyRuzEvs9rWjTSL37VM=", 197 | "requires": { 198 | "accepts": "~1.3.5", 199 | "array-flatten": "1.1.1", 200 | "body-parser": "1.18.2", 201 | "content-disposition": "0.5.2", 202 | "content-type": "~1.0.4", 203 | "cookie": "0.3.1", 204 | "cookie-signature": "1.0.6", 205 | "debug": "2.6.9", 206 | "depd": "~1.1.2", 207 | "encodeurl": "~1.0.2", 208 | "escape-html": "~1.0.3", 209 | "etag": "~1.8.1", 210 | "finalhandler": "1.1.1", 211 | "fresh": "0.5.2", 212 | "merge-descriptors": "1.0.1", 213 | "methods": "~1.1.2", 214 | "on-finished": "~2.3.0", 215 | "parseurl": "~1.3.2", 216 | "path-to-regexp": "0.1.7", 217 | "proxy-addr": "~2.0.3", 218 | "qs": "6.5.1", 219 | "range-parser": "~1.2.0", 220 | "safe-buffer": "5.1.1", 221 | "send": "0.16.2", 222 | "serve-static": "1.13.2", 223 | "setprototypeof": "1.1.0", 224 | "statuses": "~1.4.0", 225 | "type-is": "~1.6.16", 226 | "utils-merge": "1.0.1", 227 | "vary": "~1.1.2" 228 | }, 229 | "dependencies": { 230 | "body-parser": { 231 | "version": "1.18.2", 232 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz", 233 | "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", 234 | "requires": { 235 | "bytes": "3.0.0", 236 | "content-type": "~1.0.4", 237 | "debug": "2.6.9", 238 | "depd": "~1.1.1", 239 | "http-errors": "~1.6.2", 240 | "iconv-lite": "0.4.19", 241 | "on-finished": "~2.3.0", 242 | "qs": "6.5.1", 243 | "raw-body": "2.3.2", 244 | "type-is": "~1.6.15" 245 | } 246 | }, 247 | "iconv-lite": { 248 | "version": "0.4.19", 249 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", 250 | "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" 251 | }, 252 | "qs": { 253 | "version": "6.5.1", 254 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", 255 | "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" 256 | }, 257 | "raw-body": { 258 | "version": "2.3.2", 259 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", 260 | "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", 261 | "requires": { 262 | "bytes": "3.0.0", 263 | "http-errors": "1.6.2", 264 | "iconv-lite": "0.4.19", 265 | "unpipe": "1.0.0" 266 | }, 267 | "dependencies": { 268 | "depd": { 269 | "version": "1.1.1", 270 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", 271 | "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" 272 | }, 273 | "http-errors": { 274 | "version": "1.6.2", 275 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", 276 | "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", 277 | "requires": { 278 | "depd": "1.1.1", 279 | "inherits": "2.0.3", 280 | "setprototypeof": "1.0.3", 281 | "statuses": ">= 1.3.1 < 2" 282 | } 283 | }, 284 | "setprototypeof": { 285 | "version": "1.0.3", 286 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", 287 | "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" 288 | } 289 | } 290 | }, 291 | "statuses": { 292 | "version": "1.4.0", 293 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 294 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 295 | } 296 | } 297 | }, 298 | "extend": { 299 | "version": "3.0.2", 300 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 301 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 302 | }, 303 | "extsprintf": { 304 | "version": "1.3.0", 305 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 306 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 307 | }, 308 | "fast-json-stable-stringify": { 309 | "version": "2.0.0", 310 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 311 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 312 | }, 313 | "finalhandler": { 314 | "version": "1.1.1", 315 | "resolved": "http://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", 316 | "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", 317 | "requires": { 318 | "debug": "2.6.9", 319 | "encodeurl": "~1.0.2", 320 | "escape-html": "~1.0.3", 321 | "on-finished": "~2.3.0", 322 | "parseurl": "~1.3.2", 323 | "statuses": "~1.4.0", 324 | "unpipe": "~1.0.0" 325 | }, 326 | "dependencies": { 327 | "statuses": { 328 | "version": "1.4.0", 329 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 330 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 331 | } 332 | } 333 | }, 334 | "forever-agent": { 335 | "version": "0.6.1", 336 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 337 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 338 | }, 339 | "form-data": { 340 | "version": "2.3.2", 341 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", 342 | "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", 343 | "requires": { 344 | "asynckit": "^0.4.0", 345 | "combined-stream": "1.0.6", 346 | "mime-types": "^2.1.12" 347 | }, 348 | "dependencies": { 349 | "combined-stream": { 350 | "version": "1.0.6", 351 | "resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", 352 | "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", 353 | "requires": { 354 | "delayed-stream": "~1.0.0" 355 | } 356 | } 357 | } 358 | }, 359 | "forwarded": { 360 | "version": "0.1.2", 361 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 362 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 363 | }, 364 | "fresh": { 365 | "version": "0.5.2", 366 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 367 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 368 | }, 369 | "getpass": { 370 | "version": "0.1.7", 371 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 372 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 373 | "requires": { 374 | "assert-plus": "^1.0.0" 375 | } 376 | }, 377 | "har-schema": { 378 | "version": "2.0.0", 379 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 380 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 381 | }, 382 | "har-validator": { 383 | "version": "5.1.0", 384 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", 385 | "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", 386 | "requires": { 387 | "ajv": "^5.3.0", 388 | "har-schema": "^2.0.0" 389 | }, 390 | "dependencies": { 391 | "ajv": { 392 | "version": "5.5.2", 393 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", 394 | "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", 395 | "requires": { 396 | "co": "^4.6.0", 397 | "fast-deep-equal": "^1.0.0", 398 | "fast-json-stable-stringify": "^2.0.0", 399 | "json-schema-traverse": "^0.3.0" 400 | } 401 | }, 402 | "fast-deep-equal": { 403 | "version": "1.1.0", 404 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", 405 | "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" 406 | }, 407 | "json-schema-traverse": { 408 | "version": "0.3.1", 409 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", 410 | "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" 411 | } 412 | } 413 | }, 414 | "http-errors": { 415 | "version": "1.6.3", 416 | "resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", 417 | "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", 418 | "requires": { 419 | "depd": "~1.1.2", 420 | "inherits": "2.0.3", 421 | "setprototypeof": "1.1.0", 422 | "statuses": ">= 1.4.0 < 2" 423 | } 424 | }, 425 | "http-signature": { 426 | "version": "1.2.0", 427 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 428 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 429 | "requires": { 430 | "assert-plus": "^1.0.0", 431 | "jsprim": "^1.2.2", 432 | "sshpk": "^1.7.0" 433 | } 434 | }, 435 | "iconv-lite": { 436 | "version": "0.4.23", 437 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", 438 | "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", 439 | "requires": { 440 | "safer-buffer": ">= 2.1.2 < 3" 441 | } 442 | }, 443 | "inherits": { 444 | "version": "2.0.3", 445 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 446 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 447 | }, 448 | "ipaddr.js": { 449 | "version": "1.8.0", 450 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", 451 | "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=" 452 | }, 453 | "is-typedarray": { 454 | "version": "1.0.0", 455 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 456 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 457 | }, 458 | "isstream": { 459 | "version": "0.1.2", 460 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 461 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 462 | }, 463 | "jsbn": { 464 | "version": "0.1.1", 465 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 466 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 467 | "optional": true 468 | }, 469 | "json-schema": { 470 | "version": "0.2.3", 471 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 472 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 473 | }, 474 | "json-stringify-safe": { 475 | "version": "5.0.1", 476 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 477 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 478 | }, 479 | "jsprim": { 480 | "version": "1.4.1", 481 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 482 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 483 | "requires": { 484 | "assert-plus": "1.0.0", 485 | "extsprintf": "1.3.0", 486 | "json-schema": "0.2.3", 487 | "verror": "1.10.0" 488 | } 489 | }, 490 | "media-typer": { 491 | "version": "0.3.0", 492 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 493 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 494 | }, 495 | "merge-descriptors": { 496 | "version": "1.0.1", 497 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 498 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 499 | }, 500 | "methods": { 501 | "version": "1.1.2", 502 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 503 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 504 | }, 505 | "mime": { 506 | "version": "1.4.1", 507 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", 508 | "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" 509 | }, 510 | "mime-db": { 511 | "version": "1.36.0", 512 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", 513 | "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" 514 | }, 515 | "mime-types": { 516 | "version": "2.1.20", 517 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", 518 | "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", 519 | "requires": { 520 | "mime-db": "~1.36.0" 521 | } 522 | }, 523 | "ms": { 524 | "version": "2.0.0", 525 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 526 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 527 | }, 528 | "negotiator": { 529 | "version": "0.6.1", 530 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", 531 | "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" 532 | }, 533 | "oauth-sign": { 534 | "version": "0.9.0", 535 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 536 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 537 | }, 538 | "on-finished": { 539 | "version": "2.3.0", 540 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 541 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 542 | "requires": { 543 | "ee-first": "1.1.1" 544 | } 545 | }, 546 | "parseurl": { 547 | "version": "1.3.2", 548 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", 549 | "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" 550 | }, 551 | "path-to-regexp": { 552 | "version": "0.1.7", 553 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 554 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 555 | }, 556 | "performance-now": { 557 | "version": "2.1.0", 558 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 559 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 560 | }, 561 | "proxy-addr": { 562 | "version": "2.0.4", 563 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", 564 | "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", 565 | "requires": { 566 | "forwarded": "~0.1.2", 567 | "ipaddr.js": "1.8.0" 568 | } 569 | }, 570 | "psl": { 571 | "version": "1.1.29", 572 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", 573 | "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" 574 | }, 575 | "qs": { 576 | "version": "6.5.2", 577 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 578 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 579 | }, 580 | "range-parser": { 581 | "version": "1.2.0", 582 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", 583 | "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" 584 | }, 585 | "raw-body": { 586 | "version": "2.3.3", 587 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", 588 | "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", 589 | "requires": { 590 | "bytes": "3.0.0", 591 | "http-errors": "1.6.3", 592 | "iconv-lite": "0.4.23", 593 | "unpipe": "1.0.0" 594 | } 595 | }, 596 | "request": { 597 | "version": "2.88.0", 598 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", 599 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", 600 | "requires": { 601 | "aws-sign2": "~0.7.0", 602 | "aws4": "^1.8.0", 603 | "caseless": "~0.12.0", 604 | "combined-stream": "~1.0.6", 605 | "extend": "~3.0.2", 606 | "forever-agent": "~0.6.1", 607 | "form-data": "~2.3.2", 608 | "har-validator": "~5.1.0", 609 | "http-signature": "~1.2.0", 610 | "is-typedarray": "~1.0.0", 611 | "isstream": "~0.1.2", 612 | "json-stringify-safe": "~5.0.1", 613 | "mime-types": "~2.1.19", 614 | "oauth-sign": "~0.9.0", 615 | "performance-now": "^2.1.0", 616 | "qs": "~6.5.2", 617 | "safe-buffer": "^5.1.2", 618 | "tough-cookie": "~2.4.3", 619 | "tunnel-agent": "^0.6.0", 620 | "uuid": "^3.3.2" 621 | }, 622 | "dependencies": { 623 | "safe-buffer": { 624 | "version": "5.1.2", 625 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 626 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 627 | } 628 | } 629 | }, 630 | "safe-buffer": { 631 | "version": "5.1.1", 632 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 633 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 634 | }, 635 | "safer-buffer": { 636 | "version": "2.1.2", 637 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 638 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 639 | }, 640 | "send": { 641 | "version": "0.16.2", 642 | "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", 643 | "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", 644 | "requires": { 645 | "debug": "2.6.9", 646 | "depd": "~1.1.2", 647 | "destroy": "~1.0.4", 648 | "encodeurl": "~1.0.2", 649 | "escape-html": "~1.0.3", 650 | "etag": "~1.8.1", 651 | "fresh": "0.5.2", 652 | "http-errors": "~1.6.2", 653 | "mime": "1.4.1", 654 | "ms": "2.0.0", 655 | "on-finished": "~2.3.0", 656 | "range-parser": "~1.2.0", 657 | "statuses": "~1.4.0" 658 | }, 659 | "dependencies": { 660 | "statuses": { 661 | "version": "1.4.0", 662 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 663 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 664 | } 665 | } 666 | }, 667 | "serve-static": { 668 | "version": "1.13.2", 669 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", 670 | "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", 671 | "requires": { 672 | "encodeurl": "~1.0.2", 673 | "escape-html": "~1.0.3", 674 | "parseurl": "~1.3.2", 675 | "send": "0.16.2" 676 | } 677 | }, 678 | "setprototypeof": { 679 | "version": "1.1.0", 680 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", 681 | "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" 682 | }, 683 | "sshpk": { 684 | "version": "1.14.2", 685 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", 686 | "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", 687 | "requires": { 688 | "asn1": "~0.2.3", 689 | "assert-plus": "^1.0.0", 690 | "bcrypt-pbkdf": "^1.0.0", 691 | "dashdash": "^1.12.0", 692 | "ecc-jsbn": "~0.1.1", 693 | "getpass": "^0.1.1", 694 | "jsbn": "~0.1.0", 695 | "safer-buffer": "^2.0.2", 696 | "tweetnacl": "~0.14.0" 697 | } 698 | }, 699 | "statuses": { 700 | "version": "1.5.0", 701 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 702 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 703 | }, 704 | "tough-cookie": { 705 | "version": "2.4.3", 706 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", 707 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", 708 | "requires": { 709 | "psl": "^1.1.24", 710 | "punycode": "^1.4.1" 711 | }, 712 | "dependencies": { 713 | "punycode": { 714 | "version": "1.4.1", 715 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 716 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" 717 | } 718 | } 719 | }, 720 | "tunnel-agent": { 721 | "version": "0.6.0", 722 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 723 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 724 | "requires": { 725 | "safe-buffer": "^5.0.1" 726 | } 727 | }, 728 | "tweetnacl": { 729 | "version": "0.14.5", 730 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 731 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 732 | "optional": true 733 | }, 734 | "type-is": { 735 | "version": "1.6.16", 736 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", 737 | "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", 738 | "requires": { 739 | "media-typer": "0.3.0", 740 | "mime-types": "~2.1.18" 741 | } 742 | }, 743 | "unpipe": { 744 | "version": "1.0.0", 745 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 746 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 747 | }, 748 | "utils-merge": { 749 | "version": "1.0.1", 750 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 751 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 752 | }, 753 | "uuid": { 754 | "version": "3.3.2", 755 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", 756 | "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" 757 | }, 758 | "vary": { 759 | "version": "1.1.2", 760 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 761 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 762 | }, 763 | "verror": { 764 | "version": "1.10.0", 765 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 766 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 767 | "requires": { 768 | "assert-plus": "^1.0.0", 769 | "core-util-is": "1.0.2", 770 | "extsprintf": "^1.2.0" 771 | } 772 | } 773 | } 774 | } 775 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amfi-api", 3 | "version": "1.0.0", 4 | "description": "AMFI is a nodal association of mutual funds across India. AMFI provides useful knowledge and insights regarding mutual funds and investments.", 5 | "main": "server.js", 6 | "dependencies": { 7 | "body-parser": "^1.18.3", 8 | "cookie-parser": "^1.4.3", 9 | "express": "^4.16.3", 10 | "request": "^2.88.0" 11 | }, 12 | "scripts": { 13 | "test": "echo \"Error: no test specified\" && exit 1" 14 | }, 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/AmruthPillai/AMFI-API.git" 18 | }, 19 | "author": "", 20 | "license": "ISC", 21 | "bugs": { 22 | "url": "https://github.com/AmruthPillai/AMFI-API/issues" 23 | }, 24 | "homepage": "https://github.com/AmruthPillai/AMFI-API#readme" 25 | } 26 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | var express = require('express') 2 | var app = express() 3 | 4 | var api = require('./api') 5 | 6 | app.use('/', api) 7 | 8 | var server = app.listen(process.env.PORT || 8080, function () { 9 | var host = server.address().address 10 | var port = server.address().port 11 | 12 | console.log("Example app listening at http://%s:%s", host, port) 13 | }) --------------------------------------------------------------------------------