Node File Version Manager
npm install nfvm

While writing code I often run into problem of fast switching between versions of local files which are ignored by git. This files for security reason can't be in repository or they are individual for each server.
So when I want to start/test app in needed config (with specific set of files) the switching process is too slow.
The nfvm tool - is the first try to solve the problem of my daily pain.
| Parameter | Type | Description | Default Value|
|---------------|---------|------------------------------------------|--------------|
|name|String|pack name|''|
|defaultVersion|String|name of default version|default|
|currentVersion|String|name of current version|default|
|versions|String[]|array of registered pack versions|[]|
|files|File[]|array of File objects|[]|
File Version objects|[]|bash
$ npm i nfvm -g
`
CLI Commands
- init - create local .nfvmrc.json config file
- create
- -f, --file - create file
- -v - create version of pack or file
- -g, --global - create in global
- remove - remove pack
- -f, --file - remove file
- -v - remove version of pack or file
- -g, --global - remove from global
- set
- -g, --global - sets in global
- list
- -p, --pack - files list in pack
- -g, --global - list from globalResources
User Guide
TODO ListExamples
Create pack
example
`bash
nfvm create example
`
Create version default for pack example
`bash
nfvm create example -v default
`
Create file 1 for pack example
`bash
nfvm create example -f 1
`Create version
default for file 1 for pack example
`bash
nfvm create example -f 1 -v default
`Remove pack
example
`bash
nfvm remove example
`
Remove version default for pack example
`bash
nfvm remove example -v default
`
Remove file 1 for pack example
`bash
nfvm remove example -f 1
`
Remove version default for file 1 for pack example
`bash
nfvm remove example -f 1 -v default
`Set
default version for example pack
`bash
nfvm set example default
`List of all packs
`bash
nfvm list
`
List of all files in example pack
`bash
nfvm list -p example
`Config File
Config file name is .nfvmrc.json with structure:
`json
{
"packs": [{
"name": "String",
"defaultVersion": "String",
"currentVersion": "String",
"versions": "String[]",
"files": [{
"filename": "String",
"destinationPath": "String",
"removeFileIfVersionNotExists": "Boolean",
"symlink": "Boolean",
"versions": [{
"name": "String",
"path": "String",
}]
}]
}]
}
``