Catalog npm
Back to packageRELEASE DETAILS

3.0.21

npm

0x123123

curl | 0x123123

apiclicurljsontestbarfakefoo
Published22 Jul 2022
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 3.0.21 documentation

pipe alola pipe pipe alola pipe

alola

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

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-KfKrkToBL925xXn7dI+jmBuGwWsVB01W5hChvIQMY9Y2TNn4zb2DtRxLlO8VgA/QCrrqDGSPCTbv/1PatSFztg==",
  "shasum": "07e799641e4a0752ccb55149a310077392f84e0f",
  "tarball": "https://registry.npmjs.org/0x123123/-/0x123123-3.0.21.tgz",
  "fileCount": 9,
  "unpackedSize": 12077,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDmLsRg1uK/roTF0qVuVfm2FbjMVEPt+l1NCXbjX6D+jQIhALXo8rTQwOHUkx7XCLm5Z1wsNG3vUdfkj0JM15RHEgvs"
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2jR1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoaXw/+LWIMysnFBGpTjdcKUZ3c/wRXUACG3lckz3LOTJ5wvEzIFipD\r\n+58c0Ju4PWK8YUvEKbcCn0lTF66mRfFBAZ2iVXLm+iYKjnsNHuOLOgpxePR5\r\nNvObieSCzNDBdVLTtWyc0s9J8gzTp2gNaLbc4u2yzZhcmKyvKVW2NIBuvyIx\r\nkI40yqHkH08No2mx2vMWnyLKHlxJusJ1+IzerVGQ4/rue3xtgWpoRDos8nl9\r\nlwhwXlOLadq6Cj/Eu2YxARE0xYlpLcLDbZHL0tiALQgx6oB7QpH0MwTYvLoJ\r\nCeprSXNvQMq0qc5qRCKRoA62Qk9CeUt/ZVGxeOV/6QXpMJajIcLKSaTJ9Hy1\r\nt2JCmMj7AgLw+mvfP4rWcWWn3pq5xylP0Xd0WBqYzo98uYUni+JFgXkOGlAu\r\naJk5oZQpwEKu9K6PZYm6bSHp49ZcZdYYHKcg/VyTtlK7m9yMISMv0TG2GnSu\r\ngP/jR28pRJYmUa24oREU6dsKXJwo88DX5DxAKJ0ifoF+dVNR5/ti0U8XDLI3\r\neojJqEq3VbpsDCZ6vxTHKRgSoa81Z52ZPvUA8nuSxw+emh2//ImPizkNstXD\r\nGKTFoszfY5d03hxAHmOamKdIcz4SoKE8O99d7DMI6NllZxkUR0esMANifepL\r\n5ZwLTwRb1oRBwgB3oYGuN9FFg0BGZCQCNEA=\r\n=HSAw\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:04b764bf92a5af65e10697752476c1277a3112cf4e537d55dc6670a3242a7ea2

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 →