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

@learn-co-curriculum/flatiron-vimeo-uploader

v0.2.1

Published

Tool for uploading lecture videos to Vimeo and syncing details with Google Sheets

Downloads

2

Readme

Flatiron Vimeo Uploader

Setup

Install CLI app globally:

npm i -g @learn-co-curriculum/flatiron-vimeo-uploader

To run:

flatiron-vimeo-uploader

Environment Variables

The CLI looks for certain API credentials in your environment variables to authenticate with Vimeo and Google Sheets. Make sure these are set up in ENV variables in your .zshrc or .bash_profile:

export VIMEO_API_CLIENT_ID=<vimeo-client-id>
export VIMEO_API_CLIENT_SECRET=<vimeo-client-secret>
export VIMEO_API_ACCESS_TOKEN=<vimeo-access-token>
export GOOGLE_SERVICE_ACCOUNT_EMAIL=<google-service-account-email>
export GOOGLE_PRIVATE_KEY="<google-private-key(keep in quotes for multi-line)>"
export GOOGLE_LECTURE_SHEET_ID=<google-lecture-sheet-id>

Then run source ~/.zshrc to make these variables available.

Usage

Run:

flatiron-vimeo-uploader

And follow the prompts!

After you've filled them in for the first time, you'll see a print out to the console that looks something like this:

If you'd like to set these choices as defaults, add these exports to your .bash_profile or .zshrc
export FVU_FOLDER_URI=/users/106070186/projects/4269902
export FVU_DISCIPLINE=SE
export FVU_PROGRAM=Live
export FVU_COHORT=042621
export FVU_PHASE="Phase 3"
export FVU_COAST=Central

If you copy these Environment Variables to your .bash_profile or .zshrc, then next time you run the importer they'll be selected by default and you won't have to choose them again.

Contributing

The two key tools this CLI uses are the Vimeo API and Google Sheets API.

Google Sheets

Google Sheets API access is handled with the google-spreadsheet npm package. It's set up using a Service Account:

Whatever Google Sheet you are updating needs to provide edit access to the service account that is associated with the GOOGLE_SERVICE_ACCOUNT_EMAIL environment variable.

Vimeo API

Vimeo uploads are handled using the vimeo npm package.

The setup guides are here:

The credentials for the API were created as follows:

  • Create an API application with upload access associated with the Vimeo account
  • Generate an authorized access token with the upload scope