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

cli-itu

v3.2.1

Published

A CLI for students at the IT University of Copenhagen

Downloads

5

Readme

CLI-ITU

An command-line interface (CLI) for all things ITU related.

The CLI currently allows you to:

  • open ITU's platform (including individual LearnIT course pages)
  • canteen: see the menu and opening hours
  • wayfinding: find the location of every room, skybox, and facility on Campus
  • Kattis commands (WIP)

This project is open source. Any contributions by students, professors or other staff members at the IT University of Copenhagen are highly welcome.

Powered by OCLIF

oclif Version Downloads/week License

Usage

$ npm install -g cli-itu
$ itu COMMAND
running command...
$ itu (-v|--version|version)
cli-itu/3.2.1 linux-x64 node-v14.18.1
$ itu --help [COMMAND]
USAGE
  $ itu COMMAND
...

Commands

itu canteen [ACTION]

get the menu and opening hours of ITU's canteen

USAGE
  $ itu canteen [ACTION]

ARGUMENTS
  ACTION  (menu|hours) [default: menu]
          menu:  fetches the most recently uploaded lunch menu (not always up-to-date)
          hours: get the opening hours

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ itu lunch

See code: src/commands/canteen.ts

itu commands

list all the commands

USAGE
  $ itu commands

OPTIONS
  -h, --help              show CLI help
  -j, --json              display unfiltered api data in json format
  -x, --extended          show extra columns
  --columns=columns       only show provided columns (comma-separated)
  --csv                   output is csv format [alias: --output=csv]
  --filter=filter         filter property by partial string matching, ex: name=foo
  --hidden                show hidden commands
  --no-header             hide table header from output
  --no-truncate           do not truncate output to fit screen
  --output=csv|json|yaml  output in a more machine friendly format
  --sort=sort             property to sort by (prepend '-' for descending)

See code: @oclif/plugin-commands

itu feedback

report a bug or suggest an issue to improve the CLI.

USAGE
  $ itu feedback

OPTIONS
  -h, --help      show CLI help
  -n, --noprompt  turn off the issue prompt and open the issues page for the CLI instead

DESCRIPTION
  Requires Github CLI installed to create the issue. To manually submit, use the --noprompt flag.

See code: src/commands/feedback.ts

itu help [COMMAND]

display help for itu

USAGE
  $ itu help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

itu kattis ACTION PROBLEM_ID

fetch: downloads sample data files to directory. WARNING: the program will overwrite existing data files of the same name.

USAGE
  $ itu kattis ACTION PROBLEM_ID

OPTIONS
  -h, --help  show CLI help

DESCRIPTION
  fetch: downloads sample data files to directory. WARNING: the program will overwrite existing data files of the same 
  name.

See code: src/commands/kattis.ts

itu learnit [COURSE]

open a course's LearnIT page directly from your terminal.

USAGE
  $ itu learnit [COURSE]

ARGUMENTS
  COURSE  the name of the course to open in LearnIT. Supports fuzzy searching

OPTIONS
  -a, --add     add a course to the config file
  -d, --delete  remove a course from the config file
  -e, --edit    edit a course from the config file
  -h, --help    show CLI help
  -i, --init    initialize the config file
  -r, --reset   reset the config file

DESCRIPTION
  CONFIG
     for a course page to be openable, it must first be added to the config file.

     generate config   $ itu learnit --init
     add a course      $ itu learnit --add
     edit a course     $ itu learnit --edit
     delete a course   $ itu learnit --delete

     to find the course id:
     - open the LearnIT page
     - locate the number in the end of the URL

     Example: https://learnit.itu.dk/course/view.php?id=3020335 -> 3020335

ALIASES
  $ itu l

EXAMPLES
  $ itu learnit security
  $ itu learnit 'Applied Algorithms' 
  $ itu l discrete

  $ itu learnit --init
  $ itu learnit --reset
  $ itu learnit --delete
  $ itu learnit --add

See code: src/commands/learnit.ts

itu open PLATFORM

open an ITU platform

USAGE
  $ itu open PLATFORM

ARGUMENTS
  PLATFORM  (learnit|student|timeedit|mystudyactivities|itu|github|kattis) [default: learnit] ITU platform to open

OPTIONS
  -h, --help  show CLI help

ALIASES
  $ itu o

EXAMPLES
  $ itu open learnit
  $ itu open timeedit

See code: src/commands/open.ts

itu update [CHANNEL]

update the itu CLI

USAGE
  $ itu update [CHANNEL]

OPTIONS
  --from-local  interactively choose an already installed version

See code: @oclif/plugin-update

itu where ROOMNAME

find the location of auditoriums, labs, departments and class rooms - on the first try

USAGE
  $ itu where ROOMNAME

ARGUMENTS
  ROOMNAME
      the following arguments are accepted: 
      Auditoriums: (AUD0|AUD1|AUD2|AUD3|AUD4) 
      Departments: (SAP|studentadvisors|IT|analog|scrollbar|canteen) 
      Labs: (AIR|BUILD|ETHOS|IXD) 
      Rooms: (2A08|2A12|...|5A64) 
      Wings: (B|C|D|E)

OPTIONS
  -h, --help  show CLI help

DESCRIPTION
  Tells which side the room is facing

ALIASES
  $ itu w
  $ itu whereis

See code: src/commands/where.ts