diff-dependencies
v1.0.1
Published
```js const diffResult = require('diff-dependencies')(oldFolder, newFolder); ```
Downloads
2
Readme
Introduction
const diffResult = require('diff-dependencies')(oldFolder, newFolder);
diff-dependencies
will see differencies between oldFolder
and newFolder
, and returns all removed
and added
dependencies.
Params
const diffResult = require('diff-dependencies')(oldFolder, newFolder);
oldFolder
absolute folder path that
package.json
andpackage-lock.json
are in it.newFolder
absolute folder path that
package.json
andpackage-lock.json
are in it.
Return
It will return an object like:
{
"type": "update" or "package-file-not-exists",
"added": {},
"removed:: {}
}
LICENSE
MIT