get-it

v5.1.1-fetch
Generic HTTP request library for node and browsers
request http fetch

ci

npm run coverage && npm run karma && npm run lint

lint

eslint .

test

BABEL_ENV=node mocha

build

npm run compile && npm run bundle

clean

rimraf lib-node lib .nyc_output coverage npm-debug.log yarn-debug.log umd/*.js

karma

karma start

bundle

npm run bundle:build && npm run bundle:build:all && npm run bundle:minify && npm run bundle:minify:all && npm run bundle:size

compile

BABEL_ENV=node babel --source-maps --copy-files -d lib-node/ src/ && BABEL_ENV=browser babel --source-maps --copy-files -d lib/ src/

coverage

nyc --reporter=html --reporter=lcov --reporter=text _mocha

posttest

npm run lint

prepublish

in-publish && npm run build && npm test || not-in-publish

bundle:size

node -r babel-register src/scripts/print-bundle-size

bundle:build

npm run compile && NODE_ENV=production DEBUG='' browserify -t envify -g uglifyify lib/index.js -o umd/get-it.js --standalone=getIt

bundle:minify

uglifyjs -c -m -- umd/get-it.js > umd/get-it.min.js

bundle:analyze

npm run compile && NODE_ENV=production DEBUG='' browserify --full-paths -t envify -g uglifyify lib/index.js | discify --open

bundle:build:all

npm run compile && NODE_ENV=production DEBUG='' browserify -t envify -g uglifyify lib/bundle-all.js -o umd/get-it-all.js --standalone=getIt

bundle:minify:all

uglifyjs -c -m -- umd/get-it-all.js > umd/get-it-all.min.js

bundle:analyze:all

npm run compile && NODE_ENV=production DEBUG='' browserify --full-paths -t envify -g uglifyify lib/bundle-all.js | discify --open

Metadata

  • MIT
  • >=8.0.0
  • Sanity.io
  • released 12/7/2021

Downloads