Catalog npm
PACKAGE EXPLORERView in registry

0x123123

npm

0x123123

barfakefootestapiclicurljson
Versions collected36
Direct dependencies0From release 3.0.60
Last observed20 Oct, 17:49 UTC

README

Version 3.0.60 documentation

pipe alola pipe pipe alola pipe

alola

npm version: alola zero dependencies code style: prettier

curl -i <url> | alola | fx .
  • glue beetween curl -i and cli JSON parser tool of your choice like jq or fx
  • 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'

assertions

<key> should be <expected-value>
<key> should not be <expected-value>
<key> should match <expected-regex>
<key> should not match <expected-regex>

more details

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.

Versions 36

Collected releases
VersionPublishedDirect dependenciesOpen version
3.0.6022 Jul 20220
3.0.5922 Jul 20220
3.0.5822 Jul 20220
3.0.5722 Jul 20220
3.0.5522 Jul 20220
3.0.5422 Jul 20224
3.0.5222 Jul 20224
3.0.5122 Jul 20224
3.0.4722 Jul 20224
3.0.4622 Jul 20224
3.0.4522 Jul 20224
3.0.3522 Jul 20224
3.0.3322 Jul 20224
3.0.3222 Jul 20224
3.0.2922 Jul 20224
3.0.2822 Jul 20224
3.0.2722 Jul 20224
3.0.2522 Jul 20224
3.0.2322 Jul 20224
3.0.2122 Jul 20224

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:4f101cc32e2c2aad5fec54b1061a980e84b69a6ff42b8a53ecf2205657bf433e