Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Flatten Packages
Flatten Packages

Flatten Packages

Mads Kristensen

|
10,369 installs
| (7) | Free
Flattens the node_modules folder hierarchy by using the "flatten-packages" npm package behind the scenes. Works with long paths. Requires Node.js installed on the machine
Download

Flattens node_modules folder to avoid long path issues on Windows.

Open source |Report bugs |Follow on Twitter

 

Important! Node.js MUST be installed for this to work

Features

The extension adds a button in the context-menu of Solution Explorer.

React Snippet Pack

It shows up when you right-click package.json or any folder containing a subfolder callednode_modules.

The first time you run this extension it will download the npm package flatten-packages if you don't already have it installed.

React Snippet Pack

When the flatten-packages modules is installed (it takes ~5 seconds), the extension will run the command to flatten the package hierarchy in thenode_modules folder.

React Snippet Pack

Since the extension uses a Node module behind the scenes, the package flattening will work with long paths that Windows and Visual Studio normally can't handle.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft