npm-list-dependencies

Works similar to npm ls but returns a flattened list of module names of ALL dependencies. Works with >= npm v3.