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

vimeo-library-manager

v0.0.13

Published

A manager for your Vimeo libraries

Downloads

22

Readme

Purpose

vimeo-library-manager is a small utility to manager your Vimeo library, that is, automatically upload and replace your videos as necessary, as a part of some fully automated, non-interactive workflow.

Requirements

You need to have:

  • A Vimeo user account
  • An application defined (go to https://developer.vimeo.com/apps to create one)
  • The App ID and Secret. (You can copy these from Vimeo's UI.)

Why do I need an own application? I though this is the application?

In Vimeo's terminology, in order to talk to their APIs, you need to have an application. An application is identified by an app ID and secret.

Further more, every application is tied to the specific user that has created it. So if I provided you with the App ID and Secret I created for myself, whatever you do with this app would be connected to my name.

I think we can agree that this is not what we want.

Supported operations

Basically, it supports uploading, replacing and ediging videos.

Usage: vimeo-library-manager [options] [command]

Options:
  -V, --version                                           output the version number
  -c, --config <config-file>                              path to config file
  -d, --debug                                             output extra debugging
  -h, --help                                              display help for command

Commands:
  test                                                    Test your Vimeo access
  setup <client-id> <client-secret> <redirect-url>        Set up your Vimeo access
  login [options]                                         Start the login process
  logout                                                  Log out from vimeo
  list-videos                                             List my videos
  open-video <video-id>                                   Open a video in a browser
  update-data [options] <video-id>                        Update video meta-data
  upload-video [options] <video-file>                     Upload a new video
  delete-video <video-id>                                 Delete a video
  replace-content [options] <video-id> <video-file-name>  Replace video content
  list-thumbnails <video-id>                              List the thumbnails for a video
  create-thumbnail [options] <video-id>                   Create a new thumbnail for the video
  recreate-thumbnail [options] <video-id>                 Re-create the thumbnail for a video
  upload-thumbnail [options] <video-id> <image-file>      Upload a custom thumbnail for a video
  help [command]                                          display help for command

Uploading a video

You can upload a video, set metadata, and optionally display the result in a browser.

[vimeo-library-manager]

Usage: vimeo-library-manager upload-video [options] <video-file>

Upload a new video

Options:
  --set-title <title>                        Set title
  --set-description <description>            Set description
  --set-description-file <description-file>  Load description from a file
  --set-custom <JSON-data>                   Set custom JSON data
  --set-custom-file <JSON-data-file>         Set custom JSON data from a file
  --set-privacy <policy>                     Set privacy policy
  --set-password <password>                  Set the password
  --wait-for-encoding                        Wait until the video encoding finishes
  --thumbnail-time-offset <seconds>          Specify the time offset from where to take the thumbnail. (The default is
                                             from the middle of the video.)
  --thumbnail-file <image-file>              Use a custom image file as a thumbnail.
  --open                                     Open in browser
  --write-id-to <id-file>                    Write the ID of the new video to a file
  -h, --help                                 display help for command

Editing the meda-data of a video

You can provide a valid JSON string, with escaping and all that, to set any obsecure property. About properties that can be edited, see the API reference.

There are also shortcuts:

Usage: vimeo-library-manager update-data [options] <video-id>

Update video meta-data

Options:
  --set-title <title>                        Set title
  --set-description <description>            Set description
  --set-description-file <description-file>  Load description from a file
  --set-custom <JSON-data>                   Set custom JSON data
  --set-custom-file <JSON-data-file>         Set custom JSON data from a file
  --set-privacy <policy>                     Set privacy policy
  --set-password <password>                  Set the password
  -h, --help                                 display help for command

So, for example, to change the title and description of a video:

vimeo-library-manager update-data 425342398 --set-title "New title" --set-description "new desc"

To make it password protected:

vimeo-library-manager update-data 425342398 --set-password "magic"

Updating the content of a video


Usage: vimeo-library-manager replace-content [options] <video-id> <video-file-name>

Replace video content

Options:
  --wait-for-encoding                Wait until the video encoding finishes
  --thumbnail-time-offset <seconds>  Specify the time offset from where to take the thumbnail. (The default is from
                                     the middle of the video.)
  --thumbnail-file <image-file>      Use a custom image file as a thumbnail.
  --open                             Open in browser
  --no-recreate-thumbnail            Don't recreate the thumbnail
  --ignore-hash                      Ignore the results of the hash comparison, upload anyway
  -h, --help                         display help for command