README
k-explore (OperationClassification node-cjs)
exploration functions for exploring files within King OS
Currently has a thin dependency on get-path, but this can probably be removed to make this operation more general purpose (and work outside of King OS too)
This is the safe and friendly version of findFilesRecursively
Input | ||
---|---|---|
- | ||
Output |
This is the safe and friendly version of findFilesRecursively
find all active operations (folders having package.json
but also tsconfig.json
)
returns folder path array
Input | ||
---|---|---|
config (optional) | { basePath?: { }, } | |
Output |
find all active operations (folders having package.json
but also tsconfig.json
)
returns folder path array
Input | ||
---|---|---|
basePath | string | |
Output |
Checks if pathArray contains a package.json and a tsconfig.json and thus should be an operation
Handy for cancelRecursionOn
in explore
Input | ||
---|---|---|
pathArray | string[] | |
Output | { } |
Checks if pathArray contains a package.json and a tsconfig.json and thus should be an operation
Handy for cancelRecursionOn
in explore
returns the file type or null if it's unknown
Input | ||
---|---|---|
- | ||
Output | ul / code / data / text |
find all active git folders (folders having git)
Input | ||
---|---|---|
- | ||
Output |
Returns absolute paths for all docs folders (not the files inside)
Input | ||
---|---|---|
ignoreOperations (optional) | boolean | Don't look for docs folders inside of operation folders |
Output |
Input | ||
---|---|---|
config (optional) | { basePath?: { }, } | |
Output |
returns the file type or null if it's unknown
find all active git folders (folders having git)
Returns absolute paths for all docs folders (not the files inside)
Show CLI information (4)
Input | ||
---|---|---|
number | number | |
Output |
Show test information(3)
Input | ||
---|---|---|
amount (optional) | number | |
Output |
Show internal (11)
DEPRECATED: not sure if we still need it, look up usecases, can prob be replaced now
Input | ||
---|---|---|
- | ||
Output |
Input | ||
---|---|---|
- | ||
Output |
Input | ||
---|---|---|
- | ||
Output |
Input | ||
---|---|---|
config | { basePath: string, folderName: string, ignoreOperations?: boolean, ignoreFolders?: string[], } | |
Output |
Explores your files with many possibilities.
NB: this function only searches one basePath, while explore can do multiple
TODO: since this not only finds files but also explores them, naming should be exploreFilesRecursively, probably.
TODO: TextJson[] is a bit weird name for the resulting type interface...
Input | ||
---|---|---|
- | ||
Output |
DEPRECATED: not sure if we still need it, look up usecases, can prob be replaced now
Explores your files with many possibilities.
NB: this function only searches one basePath, while explore can do multiple
TODO: since this not only finds files but also explores them, naming should be exploreFilesRecursively, probably.
TODO: TextJson[] is a bit weird name for the resulting type interface...
README
k-explore (OperationClassification node-cjs)
exploration functions for exploring files within King OS
Currently has a thin dependency on get-path, but this can probably be removed to make this operation more general purpose (and work outside of King OS too)
This is the safe and friendly version of findFilesRecursively
Input | ||
---|---|---|
- | ||
Output |
This is the safe and friendly version of findFilesRecursively
find all active operations (folders having package.json
but also tsconfig.json
)
returns folder path array
Input | ||
---|---|---|
config (optional) | { basePath?: { }, } | |
Output |
find all active operations (folders having package.json
but also tsconfig.json
)
returns folder path array
Input | ||
---|---|---|
basePath | string | |
Output |
Checks if pathArray contains a package.json and a tsconfig.json and thus should be an operation
Handy for cancelRecursionOn
in explore
Input | ||
---|---|---|
pathArray | string[] | |
Output | { } |
Checks if pathArray contains a package.json and a tsconfig.json and thus should be an operation
Handy for cancelRecursionOn
in explore
returns the file type or null if it's unknown
Input | ||
---|---|---|
- | ||
Output | ul / code / data / text |
find all active git folders (folders having git)
Input | ||
---|---|---|
- | ||
Output |
Returns absolute paths for all docs folders (not the files inside)
Input | ||
---|---|---|
ignoreOperations (optional) | boolean | Don't look for docs folders inside of operation folders |
Output |
Input | ||
---|---|---|
config (optional) | { basePath?: { }, } | |
Output |
returns the file type or null if it's unknown
find all active git folders (folders having git)
Returns absolute paths for all docs folders (not the files inside)
Show CLI information (4)
Input | ||
---|---|---|
number | number | |
Output |
Show test information(3)
Input | ||
---|---|---|
amount (optional) | number | |
Output |
Show internal (11)
DEPRECATED: not sure if we still need it, look up usecases, can prob be replaced now
Input | ||
---|---|---|
- | ||
Output |
Input | ||
---|---|---|
- | ||
Output |
Input | ||
---|---|---|
- | ||
Output |
Input | ||
---|---|---|
config | { basePath: string, folderName: string, ignoreOperations?: boolean, ignoreFolders?: string[], } | |
Output |
Explores your files with many possibilities.
NB: this function only searches one basePath, while explore can do multiple
TODO: since this not only finds files but also explores them, naming should be exploreFilesRecursively, probably.
TODO: TextJson[] is a bit weird name for the resulting type interface...
Input | ||
---|---|---|
- | ||
Output |
DEPRECATED: not sure if we still need it, look up usecases, can prob be replaced now
Explores your files with many possibilities.
NB: this function only searches one basePath, while explore can do multiple
TODO: since this not only finds files but also explores them, naming should be exploreFilesRecursively, probably.
TODO: TextJson[] is a bit weird name for the resulting type interface...