npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

anx-cli

v0.1.10

Published

```shell npm install anx-cli -g ```

Downloads

3

Readme

Anx Cli

Installation

npm install anx-cli -g

Dev Installation

git clone [email protected]:appnexus/anx-cli.git
cd <cloned folder>
npm link

Usage

Set Target

anx target hb.sand-08.adnxs.net

Production: api.appnexus.comDevelopment: hb.sand-08.adnxs.net

Login

anx login [optional username]

Generic GET and POST Commands

Requests can be manually constructed using the get and post commands.

Example

anx get "user?id=12"

Users Command

anx users

Command Result

Id Username        First Name      User Type
=============================================
1  tester          tester          bidder
2  albert          albert          admin
3  bill            bill            member
4  bert OmAos8r3vYlWV   member
...

[Records 1 to 25 of 6315] View More? (Y/n)

Command List

Usage: anx <command> [options]

Commands:

  get [url]              make a GET request to target
  post [url] [payload]   make a POST request to target
  advertiser [advertiser_id] get a single Advertiser record by Id
  advertisers [options]  get a list Advertiser records
  creative [creative_id] get a single Creative record by Id
  creatives [options]    get a list Creative records
  creative-custom-request-template [creative-custom-request-template_id] get a single Creative-custom-request-template record by Id
  creative-custom-request-templates [options]  get a list Creative-custom-request-template records
  member [member_id]     get a single Member record by Id
  members [options]      get a list Member records
  publisher [publisher_id] get a single Publisher record by Id
  publishers [options]   get a list Publisher records
  template [template_id] get a single Template record by Id
  templates [options]    get a list Template records
  user [user_id]         get a single User record by Id
  users [options]        get a list User records
  login [username]       run remote setup commands
  logout                 logout by removing session token
  switch-user [user_id]  switch session user
  target [url]           set target or view current target
  targets                list known targets

Options:

  -h, --help                 output usage information
  -V, --version              output the version number
  -s, --pagesize [pagesize]  page size (default 25)
  -t, --trace                print all http requests
  -j, --json                 print as json
  -f, --file <file>          post a file
  -m, --meta                 get meta data

Session

User targets and session tokens are kept in the user's home directory in the .anx-session file.

Example Session File

{
  "tokens": {
    "https://api.appnexus.com/": "token-sdf87sd9fa98f7as987",
    "http://hb.sand-08.adnxs.net/": "token-sfsdg6790s87dfg0sd8"
  },
  "target": "https://hb.sand-08.adnxs.net/",
  "username": "[email protected]"
}