UNPKG

popsicle

Version:

Simple HTTP requests for node and the browser

78 lines (77 loc) 2.74 kB
{ "name": "popsicle", "version": "9.0.0", "description": "Simple HTTP requests for node and the browser", "main": "dist/common.js", "files": [ "dist/", "typings.json", "LICENSE", "logo.svg" ], "browser": { "buffer": false, "form-data": "./dist/browser/form-data.js", "tough-cookie": "./dist/browser/tough-cookie.js", "./dist/index.js": "./dist/browser.js", "./dist/plugins/index.js": "./dist/plugins/browser.js", "./dist/plugins/is-host/index.js": "./dist/plugins/is-host/browser.js" }, "scripts": { "lint": "tslint \"src/**/*.ts\"", "check-size": "browserify . -s popsicle --external bluebird > popsicle.js && du -h popsicle.js", "build": "rm -rf dist/ && tsc && npm run check-size", "test-spec": "npm run test-server-open && HTTPS_PORT=7358 PORT=7357 node dist/test/index.js; EXIT=$?; npm run test-server-close; exit $EXIT", "test-cov": "HTTPS_PORT=7358 PORT=7357 istanbul cover --print none dist/test/index.js | tap-spec", "test-browser": "HTTPS_PORT=7358 PORT=7357 browserify -d -t envify dist/test/index.js | tape-run --render tap-spec", "test-server-open": "PORT=7357 node scripts/server.js & echo $! > server.pid; HTTPS_PORT=7358 node scripts/https-server.js & echo $! > https-server.pid", "test-server-close": "if [ -f server.pid ]; then kill -9 $(cat server.pid); rm server.pid; fi; if [ -f https-server.pid ]; then kill -9 $(cat https-server.pid); rm https-server.pid; fi", "test": "npm run lint && npm run build && npm run test-server-open && npm run test-cov && npm run test-browser; EXIT=$?; npm run test-server-close; exit $EXIT", "prepublish": "typings install && npm run build" }, "repository": { "type": "git", "url": "git://github.com/blakeembrey/popsicle.git" }, "keywords": [ "request", "ajax", "http", "node", "browser", "promise", "agent" ], "author": { "name": "Blake Embrey", "email": "hello@blakeembrey.com", "url": "http://blakeembrey.me" }, "license": "MIT", "bugs": { "url": "https://github.com/blakeembrey/popsicle/issues" }, "homepage": "https://github.com/blakeembrey/popsicle", "devDependencies": { "blue-tape": "^1.0.0", "bluebird": "^3.0.5", "body-parser": "^1.9.2", "browserify": "^13.0.0", "envify": "^4.0.0", "express": "^4.10.2", "istanbul": "^0.4.0", "methods": "^1.1.2", "tap-spec": "^4.1.1", "tape-run": "2.1.0", "tslint": "^4.0.2", "tslint-config-standard": "^2.0.0", "typescript": "^2.1.4", "typings": "^2.0.0" }, "dependencies": { "concat-stream": "^1.4.7", "form-data": "^2.0.0", "make-error-cause": "^1.2.1", "tough-cookie": "^2.0.0" } }