fetch-h2

v3.0.2
HTTP/1+2 Fetch API client for Node.js
fetch h2 http2 client request api typesafe typescript

build:ts

rimraf dist && ./node_modules/.bin/tsc -p .

build:cert

scripts/make-certs.sh

build

concurrently 'yarn build:ts' 'yarn build:cert'

lint

tslint --project .

jest:core

jest --detectOpenHandles --coverage

jest:fast

yarn jest:core --config jest.config.unit.js $@

jest:exported

jest --config jest.config.exported.js $@

jest:integration

compd -f test/docker-compose.yaml yarn jest:core

jest:debug

node --inspect-brk node_modules/.bin/jest

test

yarn lint && yarn jest:integration

test:exported

ts-node scripts/create-exported-tests.ts && yarn jest:exported

buildtest

npm run build && npm run jest

buildtestcov

npm run build && npm run test

coveralls

cat coverage/lcov.info | node_modules/.bin/coveralls

version

ts-node scripts/version-update.ts && npm run build && npm run test && scripts/version-git-add.sh

clean:pack

rimraf dist/test* && find dist/ -name '*.map' -delete

prepack

npm run build && npm run test && npm run clean:pack && npm run test:exported

makecerts

openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout certs/key.pem -out certs/cert.pem

cz

git-cz
npm i fetch-h2

Metadata

  • MIT
  • >=12
  • Gustaf Räntilä
  • released 2/23/2022

Downloads

Maintainers