JSPM

  • Created
  • Published
  • Downloads 218
  • Score
    100M100P100Q92780F
  • License ISC

Simple CLI HTTP utilities

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aqui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    aquí

    Build Status NPM version

    Simple CLI HTTP tools aimed at maximum human friendliness.

    Installation

    $ npm i -g aqui

    Configuration

    Uses @buzuli/color, so its configuration options can be applied to optimize for your terminal.

    Examples

    HTTP GET requet

    $ aqui get http://httpbin.org/get?agent=aqui -h bearer:none
    {
      "args": {
        "agent": "aqui"
      },
      "headers": {
        "Accept": "application/json, text/plain, */*",
        "Bearer": "none",
        "Connection": "close",
        "Host": "httpbin.org",
        "User-Agent": "aqui/3.0.2"
      },
      "origin": "52.34.191.12",
      "url": "http://httpbin.org/get?agent=aqui"
    }
    
    access-control-allow-credentials : true
         access-control-allow-origin : *
                          connection : close
                      content-length : 233
                        content-type : application/json
                                date : Tue, 15 May 2018 13:18:38 GMT
                              server : gunicorn/19.8.1
                                 via : 1.1 vegur
    
    GET http://httpbin.org/get?agent=aqui
    
        Accept : application/json, text/plain, */*
    Connection : close
          Host : httpbin.org
    User-Agent : aqui/3.0.3
        bearer : none
    
    [200] OK (597.562 ms)

    Geo IP query

    $ aqui ip -gJ
    {
      "ip": "52.34.191.12",
      "as": "AS16509 Amazon.com, Inc.",
      "isp": "Amazon.com",
      "org": "Amazon.com",
      "countryCode": "US",
      "countryName": "United States",
      "regionCode": "OR",
      "regionName": "Oregon",
      "city": "Boardman",
      "zipCode": "97818",
      "metroCode": "unknown",
      "timeZone": "America/Los_Angeles",
      "latitude": 45.8696,
      "longitude": -119.688
    }

    Usage

    $ aqui <command>
    
    Commands:
      aqui delete <url> [payload]  HTTP DELETE against a URL
      aqui get <url>               HTTP GET against a URL
      aqui head <url>              HTTP HEAD against a URL
      aqui ip                      Fetch public IP info for this caller
      aqui options <url>           HTTP OPTIONS against a URL
      aqui patch <url> [payload]   HTTP PATCH against a URL
      aqui post <url> [payload]    HTTP POST against a URL
      aqui put <url> [payload]     HTTP PUT against a URL
      aqui status-codes [filter]   list the http status codes
    
    Options:
      --version  Show version number                                       [boolean]
      --help     Show help                                                 [boolean]