npm install folder-npm
//fnpm.json
{
"ignore":[
"node_modules/",
".git",
"fnpm.json",
"package-lock.json",
".gitignore"
//===================================
//Specify files/folders to exclude
//===================================
],
"dependencies":{}
}
Option | Description |
---|---|
path | Remove only matching files/folders. ex) path, path/temp |
path/ | Remove only matching folders. ex) path/, temp/path/,path/temp |
/path | Remove only the files/folders that match from the beginning of the absolute path. ex) path, path/temp (not temp/path) |
*.~ | Exclude all applicable extensions. ex) *.zip, *.json |
//install.js (Write the file name as comfortable as you like)
const fnpm=require('folder-npm')
fnpm.FromParentPath('{folder name of the A project}')
or
fnpm.Path('{path of the A project}') //C:\~
...(Add another module if present)
fnpm.Install()