Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-version-checker

Package Overview
Dependencies
Maintainers
5
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-version-checker

Determine if your addon is being used by a minimum version of Ember CLI.

  • 3.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
885K
decreased by-2.97%
Maintainers
5
Weekly downloads
 
Created

What is ember-cli-version-checker?

The ember-cli-version-checker package is a utility for checking the versions of npm and bower dependencies in Ember CLI projects. It helps ensure compatibility and manage dependencies effectively.

What are ember-cli-version-checker's main functionalities?

Check Dependency Version

This feature allows you to check if a specific dependency version is less than a given version. In this example, it checks if the 'ember-source' version is less than '3.0.0'.

const VersionChecker = require('ember-cli-version-checker');

let checker = new VersionChecker(this);
let dep = checker.for('ember-source', 'npm');

if (dep.lt('3.0.0')) {
  console.log('ember-source version is less than 3.0.0');
}

Check Multiple Dependencies

This feature allows you to check multiple dependencies at once. In this example, it checks if both 'ember-source' and 'jquery' versions are less than '3.0.0'.

const VersionChecker = require('ember-cli-version-checker');

let checker = new VersionChecker(this);
let emberDep = checker.for('ember-source', 'npm');
let jqueryDep = checker.for('jquery', 'bower');

if (emberDep.lt('3.0.0') && jqueryDep.lt('3.0.0')) {
  console.log('Both ember-source and jquery versions are less than 3.0.0');
}

Check Dependency Range

This feature allows you to check if a dependency version falls within a specified range. In this example, it checks if the 'ember-source' version is between '2.0.0' and '3.0.0'.

const VersionChecker = require('ember-cli-version-checker');

let checker = new VersionChecker(this);
let dep = checker.for('ember-source', 'npm');

if (dep.satisfies('>=2.0.0 <3.0.0')) {
  console.log('ember-source version is between 2.0.0 and 3.0.0');
}

Other packages similar to ember-cli-version-checker

FAQs

Package last updated on 26 Mar 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc