feat: add config set and npm config
This commit is contained in:
		
							
								
								
									
										9
									
								
								src/uitls/file.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/uitls/file.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| import fs from 'fs'; | ||||
| export const fileIsExist = (filePath: string) => { | ||||
|   try { | ||||
|     fs.accessSync(filePath, fs.constants.F_OK); | ||||
|     return true; | ||||
|   } catch (error) { | ||||
|     return false; | ||||
|   } | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user