Skip to content

🚀 A crypto utility library to be used from Postman Pre-request and Tests script tabs.

License

Notifications You must be signed in to change notification settings

joolfe/postman-util-lib

Repository files navigation

logo

build codecov build

Postman-util-lib is a JavaScript library bundle to squeeze Postman script allowing you to easily use a lot of cryptography method from Pre-request Script and Tests tabs in Postman.

DEVELOPMENT INSTRUCTIONS

For develop in local please use:

  • Node.js v10.15.3 or higher
  • Standard JS rules to maintain clean code.

Use the scripts in package.json:

  • test:unit: Run mocha unit test.
  • test:lint: Execute unit test plus standard rules check.
  • test: Execute test:lint plus code coverage.
  • build: Create a browserify version of the lib in docs/dist
  • dev: Run build script and start a dev server in localhost.
  • test:e2e: Run a newman test using a collection against the deployed bundle in github pages.

Deployment is just push the changes to the git repo and will be deployed into github pages.

There are two configured Github Actions:

  • Build Node: on push do npm install, test and upload coverage in Node.js 10 and 12.
  • Test: on page_build execute newman e2e test against the deployed distribution.

Husky is configured to avoid push incorrect content to git.

TAGS

Nodejs Javascript Jeckyll Mocha Postman Crypto Newman

LICENSE

See the LICENSE file.