fixes #10, add shrinktree api for subtree or generate dep tree from a package json object, purely