GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DanielVenturini/vigilant-lamp: Resolve all semver range versions from NPM in package.json in a specify date.

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
npm
npm
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
common.py
common.py
 
 
lamp.py
lamp.py
 
 
main.py
main.py
 
 
makefile
makefile
 
 
network.py
network.py
 
 
requirements.txt
requirements.txt
 
 
semanticversionrange.py
semanticversionrange.py
 
 
versionrangeparser.py
versionrangeparser.py
 
 
worker.py
worker.py
 
 

Repository files navigation

vigilant-lamp

Resolve all semver range versions from NPM in package.json in a specify date.

Use

add the key date in package.json:

{
	"date": "2019-01-07"
}

but, the follow is better:

{
	"date": "2019-01-07T18:14:39.683Z"
}

because this is an NPM time standard.

Then, type

lamp package.json

or

lamp path/to/package.json

Then, all dependencies will be downgraded - or upgrade - to best satisfies range in specify date.

Install

To install, clone this repo and type:

make
make install    # try with super

this download all dependencies and install. Be happy.

Example

If package.json is:

{
  "date": "2015-06-30",
  "dependencies": {
    "express": "^4.10.6",
    "lodash": "~3.9.0",
    "karma": "^0.13.0-rc.1"
  },
  "devDependencies": {
    "mongoose": "^4.5.9",
    "mocha": "2.2.0"
  }
}

the command lamp package.json results in:

{
  "date": "2015-06-30",
  "dependencies": {
    "express": "4.13.0",
    "lodash": "3.9.3",
    "karma": "0.13.0-rc.6"
  },
  "devDependencies": {
    "mocha": "2.2.0",
    "mongoose": "^4.5.9"
  }
}
  • express, lodash and karma were changed;
  • mocha wasn't range; and
  • in specify date, mongoose@^4.5.9 didn't exist.

also works to peerDependencies, optionalDependencies and globalDependencies.

Support any types of range:

  • "package": "^1.2.3"
  • "package": "~1.2.3"
  • "package": ^1.2.3-alpha.1"
  • "package": "^1.x"
  • "package": "4.x"
  • "package": "*"
  • "package": "latest"
  • "package": ">=10"
  • "package": "^2.x < 2.9"
  • "package": "0.x || 10.0.x"
  • ...

Tests

To execute the tests

make test -B

Dependencies

All dependencies are installed when make executable.

pip3 install requests
pip3 install semantic_version
pip3 install parsimonious
pip3 install pyinstaller
pip3 install colorama
pip3 install semver

Build on Python 3.6.

About

Resolve all semver range versions from NPM in package.json in a specify date.

Topics

datedependenciesdependencydependency-managernpmresolversemversemver-range-versionsversioningversions

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.