{"repo":"vercel/nft","free":true,"listed":false,"github":"https://github.com/vercel/nft","clone":"git clone https://github.com/vercel/nft.git","description":"Node.js dependency tracing utility","language":"JavaScript","stars":1666,"topics":["static-analysis"],"license":"MIT","category":"dev-tools","readme_excerpt":"Node File Trace Used to determine exactly which files (including node modules ) are necessary for the application runtime. This is similar to @vercel/ncc except there is no bundling performed and therefore no reliance on webpack. This achieves the same tree-shaking benefits without moving any assets or binaries. Usage Installation Usage Provide the list of source files as input: The list of files will include all node modules modules and assets that may be needed by the application code. Options Base The base path for the file list - all files will be provided as relative to this base. By default the process.cwd() is used: Any files/folders above the base are ignored in the listing and analysis. Process Cwd When applying analysis certain functions rely on the process.cwd() value, such as path.resolve('./relative') or even a direct process.cwd() invocation. Setting the processCwd option allows this analysis to be guided to the right path to ensure that assets are correctly detected. By default processCwd is the same as base . Exports & Imports By default tracing of the Node.js \"exports\" and \"imports\" fields is supported, with the \"node\" , \"require\" , \"import\" and \"default\" conditions traced as defined. Alternatively the explicit list of conditions can be provided: Only the \"node\" export should be explicitly included (if needed) when specifying the exact export condition list. The \"require\" , \"import\" and \"default\" conditions will always be traced as defined, no matter what cus","default_branch":null,"files":null,"tree":[],"storefront":"/r/vercel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vercel/nft/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}