Here is a patch which enables processing of node_modules during init. This does the job but as I have noted with some TODO comments, I think there are some additional checks and features we could offer the user.
Since I'm not very familiar with the npm codebase, I would like to get some comments regarding the current patch before I spend any more time on this.
init: process node_modules to add dependencies during `npm init`
init: add option 'dev' to include package in devDependencies
init: set default answer depending on which type of dependency it is
init: rework code to fit within 80 cols
Cool, and useful. =)
Did this a different way. Check out how npm init has changed in the most recent version!