shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
pickOneSync
Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs
This function allows you to specify multiple files to check and pick one of them
Params
- filesNames*-String[]
The names of the files you want to check
- settings{}TPickOneSyncSettings
An object of settings to configure your research
Return
- -String
The path of the file found
Example
import { pickOneSync } from '@blackbyte/sugar/fs';
pickOneSync(['myCoolFile.json', 'myCoolFile2.json'], {});Settings
- cwdprocess.cwd()String
The current working directory to search in
Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space