lock-verify

WebJar for lock-verify

Лицензия

Лицензия

ISC
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

lock-verify
Последняя версия

Последняя версия

2.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

lock-verify
WebJar for lock-verify
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/npm/lock-verify

Скачать lock-verify

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/lock-verify/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>lock-verify</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/lock-verify/
implementation 'org.webjars.npm:lock-verify:2.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/lock-verify/
implementation ("org.webjars.npm:lock-verify:2.2.1")
'org.webjars.npm:lock-verify:jar:2.2.1'
<dependency org="org.webjars.npm" name="lock-verify" rev="2.2.1">
  <artifact name="lock-verify" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='lock-verify', version='2.2.1')
)
libraryDependencies += "org.webjars.npm" % "lock-verify" % "2.2.1"
[org.webjars.npm/lock-verify "2.2.1"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.npm : npm-package-arg jar [6.1.0,7)
org.webjars.npm : semver jar [5.4.1,6)
org.webjars.npm : iarna__cli jar [1.2.0,2)

Модули Проекта

Данный проект не имеет модулей.

Note: pending imminent deprecation

This module will be deprecated once npm v7 is released. Please do not rely on it more than absolutely necessary (ie, only if you are depending on it for use with npm v6 internal dependencies).


lock-verify

Report if your package.json is out of sync with your package-lock.json.

USAGE

const lockVerify = require('lock-verify')
lockVerify(moduleDir).then(result => {
  result.warnings.forEach(w => console.error('Warning:', w))
  if (!result.status) {
    result.errors.forEach(e => console.error(e))
    process.exit(1)
  }
})

As a library it's a function that takes the path to a module and returns a promise that resolves to an object with .status, .warnings and .errors properties. The first will be true if everything was ok (though warnings may exist). If there's no package.json or no lockfile in moduleDir or they're unreadable then the promise will be rejected.

org.webjars.npm

npm

node package manager

Версии библиотеки

Версия
2.2.1
2.2.0
2.1.0
2.0.2
2.0.0