Socket
Book a DemoInstallSign in
Socket

@wmde/lib-version-check

Package Overview
Dependencies
Maintainers
15
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wmde/lib-version-check

A small utility to check library versions against a remote copy

latest
Source
npmnpm
Version
0.1.1-alpha.2
Version published
Weekly downloads
16
45.45%
Maintainers
15
Weekly downloads
 
Created
Source

Lib Version Check

A small utility to check remote library versions against a local dependency entry.

Usage

  • Install

    npm i lib-version-check
    
  • Add remote library urls to your package.json

    {
        // ...
        "config": {
            "remoteVersion": {
                // <package-name>: <remote>
                "vue": "https://raw.githubusercontent.com/wikimedia/mediawiki/master/resources/lib/vue/vue.common.prod.js",
            }
        }
    }
    
  • Run in a directory that contains your package.json

    lib-version-check
    
  • Add a script to your package.json, to run anywhere within your project

    {
        // ...
        "scripts": {
            "check-versions": "lib-version-check"
        }
    }
    

Environment Variables

  • Interpolate environment variables to a specified remote url

    {
        // ...
        "config": {
            "remoteVersion": {
                // <package-name>: <remote>
                "vue": "https://raw.githubusercontent.com/wikimedia/mediawiki/#{SOME_BRANCH}/resources/lib/vue/vue.common.prod.js",
            }
        }
    }
    
  • Define the environment variable and run the check

    SOME_BRANCH=main lib-version-check
    

Keywords

tool

FAQs

Package last updated on 19 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts