@gera2ld/locky
Transform lock files for different registries.
Last updated 2 months ago by gera2ld .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @gera2ld/locky 
SYNC missed versions from official npm registry.

@gera2ld/locky

NPM License Downloads

Transform yarn.lock files for different registries.

Requires Node.js greater than v10.0.

Why

yarn.lock has a resolved field that contains the full URL to the tarball of each dependency. When installing with the lock file, the package manager will download the package with the resolved URL instead of resolving it with the name and version.

There is a chance that different users have different network conditions, and they may expect different registry to use, resulting as different resolved URLs to download.

For example, in China the NPM registry is slow and people use taobao registry instead. But for people outside China, it is just the opposite.

With this package, you can always transform the lock file with resolved URLs on an expected registry so that other people could easily install them.

Installation

You can even use it without installation, via npx.

Or install it globally:

$ yarn global add @gera2ld/locky

Usage

# transform the yarn.lock to resolve to npm registry
$ locky yarn npm

# use with npx
$ npx @gera2ld/locky yarn npm

Current Tags

  • 0.1.0                                ...           latest (2 months ago)

1 Versions

  • 0.1.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |