9
rocktim
4y

I created Syzer⚑ a cli tool that updates all of your npm dependencies at one go.

Repo: πŸš€
https://github.com/RocktimSaikia/...

The reasons behind building this: πŸ“
1) I personally hate updating my project dependencies manually.
2) There are other similar libraries that do the same thing but I tried one and too much config. I had to specify the package.json file to update it. then what was the point of using that library. So ended up creating one myself.
3) 'npm update' already exists I know but it does not update the package.json file with the latest version tags.

For more info on how the use the tool check it's README instructions. πŸ‘‹

Comments
  • 2
    does it update major versions?
  • 1
    @coffeeholic yes. I am thinking about making it modular. then it can be required as a module. but currently busy with some other stuff so leaving that for now.
  • 1
    Cool, gonna check it out
  • 0
    @Marl3x sure. thanks πŸ™
  • 1
    @rocktim I mean. does it update major versions by default?
  • 0
    @coffeeholic Yes, it does. but note that it only updates the versions at package.json. After that, you would have to do a usual 'npm install' to actually install the latest versions.
  • 3
    @coffeeholic If it wouldn't you could just use npm update, right?

    package.json contains constraints, lock contains actual versions. Normally you'd do patch/minor automatically using npm update, and major versions manually because there could be breaking changes.

    I assume this tool is kind of meant as a "fuck it, lets break some things" tool.

    For PHP/composer, it has always annoyed me a bit that there was no "fuck it lets break some things" option.
  • 0
    @bittersweet Actually there is an option in the tool to ignore specific dependencies while updating. If there is a major version and you don't want to update or want to update it manually then you can just pass the package with the flag
    "--ignore <package_name>"
    and it won't update it.
    ps: you can pass multiple packages
  • 1
    πŸ˜‚ i literally made this already https://github.com/uyouthe/...
  • 1
    Sweet. Just got some GitHub security warnings. Will check it out.
  • 0
    @narveer cool πŸ‘‹
  • 0
    There are no tests.
  • 0
    @uyouthe I smell Eurobeat.
  • 0
    Checked Out, will propose to Dev team(aka. 3 people) tomorrow.
Add Comment