Command line utility to replace http links in package-lock with https
npm install chttpschttps is a minimal command line utility for replacing resolved http links on package-lock JSON files with https.```
npm install chttps --global`
Then in the package folder you could use the command below to test the package-lock.json file & replace resolved http links with https.`
chttps .
``
npm install chttps --save-dev`
Then add the following line to the scripts tag within the package.json file of the desired module.`
"scripts": {
"postshrinkwrap": "chttps ."
}
Replace all occurrences (i.e. the first ones on every line) of 'resolved": "http://' with 'resolved": "https://' in the package-lock.json in the current directory:
``
chttps .
Replace all occurrences (i.e. the first ones on every line) of 'resolved": "http://' with 'resolved": "https://' in the package-lock.json in another directory:
```
chttps "packageFolder"