Catalog npm
Back to packageRELEASE DETAILS

3.0.23

npm

0x123123

curl | 0x123123

apiclicurljsontestbarfakefoo
Published22 Jul 2022
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 3.0.23 documentation

pipe alola pipe pipe alola pipe

alola

npm version: alola zero dependencies code style: prettier .github/workflows/main.yaml

  • it was built with unix-philosophy in the mind
  • runs assertions on JSON
  • no bail-out: it runs every assertions
  • CI-friendly: process exit code is always the number of failed testcases

usage

# npm install -g alola
# or
# npx alola (recommended)

curl -i <url> | npx alola [assertions]

examples

curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ \
  | npx alola

# output

{
  "redirects": [],
  "protocol": "HTTP/1.1",
  "status": 200,
  "statusText": "OK",
  "headers": {
    "date": "Sun, 10 Jul 2022 08:30:19 GMT",
    "content-type": "application/json",
    "content-length": "68",
    "connection": "keep-alive",
    "x-amzn-requestid": "6f38be71-8c2a-4106-8bd5-6a2a0726d831",
    "x-amzn-trace-id": "root=1-62ca8e1b-3fa47e01777132441c03e3de;sampled=0"
  },
  "body": {
    "date": 1657441819664,
    "foobar": 42,
    "author": "balazs4",
    "name": "alola"
  }
}
# follows redirections
curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ --follow \
  | npx alola

# assertion
curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ \
  | npx alola \
   'status should be 200' \
   'headers.content-type should match json'\
   'body.author should be balazs4'

# silent assertion
curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ \
  | npx alola 'status should be 200' 2>/dev/null

# assertion only
curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ \
  | npx alola 'status should be 200' 1>/dev/null

# json assertion output
curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ \
  | ALOLA_REPORT=json npx alola 'status should be 200' 1>/dev/null

# middleware
curl -i https://ewqfsixnkkhp3syjy65heuhkou0dogwr.lambda-url.eu-central-1.on.aws/ \
  | npx alola 'status should be 200' 'headers.content-type should match json' \
  | fx 'res => res.body.name + " by " + res.body.author'

configuration

You can configure alola with the following environment variables:

Environment variableDescriptionDefault valuePossible values
ALOLA_REPORTresult reportertexttext,json
ALOLA_CUSTOMany resolvable path to the custom assertions./.alola.js

complementary projects

author

balazs4 - https://twitter.com/balazs4

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
bft
Environment
{
  "local_name": "bft",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
c8
Environment
{
  "local_name": "c8",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
onchange
Environment
{
  "local_name": "onchange",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
latestdevelopment

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-voU/2EUWzyxVnugo2v+1d7gFB231sFVqnER6hYoqdG9kI4xAOc+DS5MGly86WHaLEeeI7qFZSl58K7GfneOSHw==",
  "shasum": "c5be96ffde41430ae197936200a021f90a4b3676",
  "tarball": "https://registry.npmjs.org/0x123123/-/0x123123-3.0.23.tgz",
  "fileCount": 9,
  "unpackedSize": 12266,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCID8R0/oxvztf44OzKVqqyKIqMFGSNPjSqsByS6p4iwT2AiEAxuNCWtAF0P0Qh63DEggfPTRA+aPCJoyx5vpjvvTQllY="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2jSoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoxAw//fK2qkViHuGxPHgq/KsQ04hyKBbI02YTSsZkY64U+0bkplzt5\r\nY2KsXb0qC5l1EH9x2yT3//HcRD0Jh+pj9KlgCQV64qrZeQjWLezz8X5W5v0/\r\npx46i+FX6E8IYWn3jjylfWxtxDbPms61E1lbVl9ggoKYcebUqvI9HJOPGFBH\r\nPrImN8W+AMJRQdqNR10CkhyI3UzYLQFS08t6bHlyFwfd6Qz9HaCA4nqDEJxd\r\nowgQOmzUK+C7IGbmJP1IhgvhfwnDO2pBM03VTOgkd6Mot3Okhpd72zpTCTeH\r\n0QO4oT51XADxyM6KCg9/r+QejzAD1LQX/mFSvn1bB5gpBk1OOpiMIWH5Djxa\r\niFLOnnFQapOcAlodZ51qzxTEMk13JULTNjxiMtPmYeh226sM8J0D0oqrraa4\r\nileGG3wZjSUMq+b9N2gIlVO5F86D6S6P5YxUUbvRWDJHGwcWmNDhknMuptxU\r\nfCdvEE67SLnNS5y7uz1Xm3CvhSm68iQPI4FUXkaZBk4yITAwW08hSb04kruU\r\n7JVbLkqEGAWXx8v01EAPON3Y+qlddmGwCBgMdVB50t81+bTZmUefP0nkpvgD\r\nTHh13zysV0NXtqV7LfIzMriA0UO0h+YbRzv5ASVek6mU7qp3nrj/XKRNS7vq\r\ncE+LvrlRganCYypYcjpYVFHitFlinXFf+HI=\r\n=aQEl\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
balazs4/0x123123

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ef1183c1e782117b0a1168538c6fcd1f6d3f8bee93bf02ff9940764201677ecc

Other collected versions

3.0.6022 Jul3.0.5922 Jul3.0.5822 Jul3.0.5722 Jul3.0.5522 Jul3.0.5422 JulView all collected versions →