@bemoje/fs 0.2.11 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/cjs/index.d.ts +80 -0
- package/cjs/index.d.ts.map +1 -0
- package/cjs/index.js +83 -0
- package/cjs/index.js.map +1 -0
- package/cjs/lib/appendFile.d.ts +10 -0
- package/cjs/lib/appendFile.d.ts.map +1 -0
- package/cjs/lib/appendFile.js +23 -0
- package/cjs/lib/appendFile.js.map +1 -0
- package/cjs/lib/appendFileLine.d.ts +7 -0
- package/cjs/lib/appendFileLine.d.ts.map +1 -0
- package/cjs/lib/appendFileLine.js +16 -0
- package/cjs/lib/appendFileLine.js.map +1 -0
- package/cjs/lib/appendFileLineSync.d.ts +7 -0
- package/cjs/lib/appendFileLineSync.d.ts.map +1 -0
- package/cjs/lib/appendFileLineSync.js +16 -0
- package/cjs/lib/appendFileLineSync.js.map +1 -0
- package/cjs/lib/appendFileSync.d.ts +10 -0
- package/cjs/lib/appendFileSync.d.ts.map +1 -0
- package/cjs/lib/appendFileSync.js +23 -0
- package/cjs/lib/appendFileSync.js.map +1 -0
- package/{src → cjs}/lib/createDirectory.d.ts +1 -5
- package/cjs/lib/createDirectory.d.ts.map +1 -0
- package/cjs/lib/createDirectory.js +18 -0
- package/cjs/lib/createDirectory.js.map +1 -0
- package/{src → cjs}/lib/createDirectorySync.d.ts +1 -3
- package/cjs/lib/createDirectorySync.d.ts.map +1 -0
- package/{src → cjs}/lib/createDirectorySync.js +2 -5
- package/cjs/lib/createDirectorySync.js.map +1 -0
- package/cjs/lib/emptyDirectory.d.ts +17 -0
- package/cjs/lib/emptyDirectory.d.ts.map +1 -0
- package/cjs/lib/emptyDirectory.js +26 -0
- package/cjs/lib/emptyDirectory.js.map +1 -0
- package/cjs/lib/emptyDirectorySync.d.ts +17 -0
- package/cjs/lib/emptyDirectorySync.d.ts.map +1 -0
- package/cjs/lib/emptyDirectorySync.js +29 -0
- package/cjs/lib/emptyDirectorySync.js.map +1 -0
- package/{src → cjs}/lib/getJsonIndentation.d.ts +1 -0
- package/cjs/lib/getJsonIndentation.d.ts.map +1 -0
- package/{src → cjs}/lib/getJsonIndentation.js +2 -2
- package/{src → cjs}/lib/getJsonIndentation.js.map +1 -1
- package/{src → cjs}/lib/getLastMofifiedFileIn.d.ts +1 -0
- package/cjs/lib/getLastMofifiedFileIn.d.ts.map +1 -0
- package/cjs/lib/getLastMofifiedFileIn.js +20 -0
- package/cjs/lib/getLastMofifiedFileIn.js.map +1 -0
- package/cjs/lib/promptUserEditInTextEditor.d.ts +10 -0
- package/cjs/lib/promptUserEditInTextEditor.d.ts.map +1 -0
- package/cjs/lib/promptUserEditInTextEditor.js +29 -0
- package/cjs/lib/promptUserEditInTextEditor.js.map +1 -0
- package/cjs/lib/promptUserEditInTextEditorSync.d.ts +10 -0
- package/cjs/lib/promptUserEditInTextEditorSync.d.ts.map +1 -0
- package/cjs/lib/promptUserEditInTextEditorSync.js +27 -0
- package/cjs/lib/promptUserEditInTextEditorSync.js.map +1 -0
- package/cjs/lib/promptUserEditJsonInTextEditor.d.ts +13 -0
- package/cjs/lib/promptUserEditJsonInTextEditor.d.ts.map +1 -0
- package/cjs/lib/promptUserEditJsonInTextEditor.js +25 -0
- package/cjs/lib/promptUserEditJsonInTextEditor.js.map +1 -0
- package/cjs/lib/promptUserEditJsonInTextEditorSync.d.ts +13 -0
- package/cjs/lib/promptUserEditJsonInTextEditorSync.d.ts.map +1 -0
- package/cjs/lib/promptUserEditJsonInTextEditorSync.js +25 -0
- package/cjs/lib/promptUserEditJsonInTextEditorSync.js.map +1 -0
- package/cjs/lib/readDirectoryDirents.d.ts +11 -0
- package/cjs/lib/readDirectoryDirents.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirents.js +17 -0
- package/cjs/lib/readDirectoryDirents.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsPaths.d.ts +14 -0
- package/cjs/lib/readDirectoryDirentsPaths.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsPaths.js +27 -0
- package/cjs/lib/readDirectoryDirentsPaths.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsPathsSafe.d.ts +15 -0
- package/cjs/lib/readDirectoryDirentsPathsSafe.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsPathsSafe.js +22 -0
- package/cjs/lib/readDirectoryDirentsPathsSafe.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsPathsSafeSync.d.ts +15 -0
- package/cjs/lib/readDirectoryDirentsPathsSafeSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsPathsSafeSync.js +22 -0
- package/cjs/lib/readDirectoryDirentsPathsSafeSync.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsPathsSync.d.ts +14 -0
- package/cjs/lib/readDirectoryDirentsPathsSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsPathsSync.js +27 -0
- package/cjs/lib/readDirectoryDirentsPathsSync.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsSafe.d.ts +12 -0
- package/cjs/lib/readDirectoryDirentsSafe.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsSafe.js +20 -0
- package/cjs/lib/readDirectoryDirentsSafe.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsSafeSync.d.ts +12 -0
- package/cjs/lib/readDirectoryDirentsSafeSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsSafeSync.js +20 -0
- package/cjs/lib/readDirectoryDirentsSafeSync.js.map +1 -0
- package/cjs/lib/readDirectoryDirentsSync.d.ts +11 -0
- package/cjs/lib/readDirectoryDirentsSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryDirentsSync.js +17 -0
- package/cjs/lib/readDirectoryDirentsSync.js.map +1 -0
- package/cjs/lib/readDirectoryNames.d.ts +7 -0
- package/cjs/lib/readDirectoryNames.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNames.js +15 -0
- package/cjs/lib/readDirectoryNames.js.map +1 -0
- package/cjs/lib/readDirectoryNamesPaths.d.ts +11 -0
- package/cjs/lib/readDirectoryNamesPaths.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesPaths.js +24 -0
- package/cjs/lib/readDirectoryNamesPaths.js.map +1 -0
- package/cjs/lib/readDirectoryNamesPathsSafe.d.ts +12 -0
- package/cjs/lib/readDirectoryNamesPathsSafe.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesPathsSafe.js +20 -0
- package/cjs/lib/readDirectoryNamesPathsSafe.js.map +1 -0
- package/cjs/lib/readDirectoryNamesPathsSafeSync.d.ts +12 -0
- package/cjs/lib/readDirectoryNamesPathsSafeSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesPathsSafeSync.js +20 -0
- package/cjs/lib/readDirectoryNamesPathsSafeSync.js.map +1 -0
- package/cjs/lib/readDirectoryNamesPathsSync.d.ts +11 -0
- package/cjs/lib/readDirectoryNamesPathsSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesPathsSync.js +24 -0
- package/cjs/lib/readDirectoryNamesPathsSync.js.map +1 -0
- package/cjs/lib/readDirectoryNamesSafe.d.ts +8 -0
- package/cjs/lib/readDirectoryNamesSafe.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesSafe.js +18 -0
- package/cjs/lib/readDirectoryNamesSafe.js.map +1 -0
- package/cjs/lib/readDirectoryNamesSafeSync.d.ts +8 -0
- package/cjs/lib/readDirectoryNamesSafeSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesSafeSync.js +18 -0
- package/cjs/lib/readDirectoryNamesSafeSync.js.map +1 -0
- package/cjs/lib/readDirectoryNamesSync.d.ts +7 -0
- package/cjs/lib/readDirectoryNamesSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryNamesSync.js +15 -0
- package/cjs/lib/readDirectoryNamesSync.js.map +1 -0
- package/cjs/lib/readDirectoryPaths.d.ts +7 -0
- package/cjs/lib/readDirectoryPaths.d.ts.map +1 -0
- package/cjs/lib/readDirectoryPaths.js +18 -0
- package/cjs/lib/readDirectoryPaths.js.map +1 -0
- package/cjs/lib/readDirectoryPathsSafe.d.ts +8 -0
- package/cjs/lib/readDirectoryPathsSafe.d.ts.map +1 -0
- package/cjs/lib/readDirectoryPathsSafe.js +19 -0
- package/cjs/lib/readDirectoryPathsSafe.js.map +1 -0
- package/cjs/lib/readDirectoryPathsSafeSync.d.ts +8 -0
- package/cjs/lib/readDirectoryPathsSafeSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryPathsSafeSync.js +19 -0
- package/cjs/lib/readDirectoryPathsSafeSync.js.map +1 -0
- package/cjs/lib/readDirectoryPathsSync.d.ts +7 -0
- package/cjs/lib/readDirectoryPathsSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryPathsSync.js +18 -0
- package/cjs/lib/readDirectoryPathsSync.js.map +1 -0
- package/cjs/lib/readDirectoryStats.d.ts +13 -0
- package/cjs/lib/readDirectoryStats.d.ts.map +1 -0
- package/cjs/lib/readDirectoryStats.js +33 -0
- package/cjs/lib/readDirectoryStats.js.map +1 -0
- package/cjs/lib/readDirectoryStatsSafe.d.ts +14 -0
- package/cjs/lib/readDirectoryStatsSafe.d.ts.map +1 -0
- package/cjs/lib/readDirectoryStatsSafe.js +20 -0
- package/cjs/lib/readDirectoryStatsSafe.js.map +1 -0
- package/cjs/lib/readDirectoryStatsSafeSync.d.ts +14 -0
- package/cjs/lib/readDirectoryStatsSafeSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryStatsSafeSync.js +20 -0
- package/cjs/lib/readDirectoryStatsSafeSync.js.map +1 -0
- package/cjs/lib/readDirectoryStatsSync.d.ts +13 -0
- package/cjs/lib/readDirectoryStatsSync.d.ts.map +1 -0
- package/cjs/lib/readDirectoryStatsSync.js +32 -0
- package/cjs/lib/readDirectoryStatsSync.js.map +1 -0
- package/cjs/lib/readFile.d.ts +22 -0
- package/cjs/lib/readFile.d.ts.map +1 -0
- package/cjs/lib/readFile.js +21 -0
- package/cjs/lib/readFile.js.map +1 -0
- package/cjs/lib/readFileBuffer.d.ts +20 -0
- package/cjs/lib/readFileBuffer.d.ts.map +1 -0
- package/cjs/lib/readFileBuffer.js +20 -0
- package/cjs/lib/readFileBuffer.js.map +1 -0
- package/cjs/lib/readFileBufferSafe.d.ts +12 -0
- package/cjs/lib/readFileBufferSafe.d.ts.map +1 -0
- package/cjs/lib/readFileBufferSafe.js +24 -0
- package/cjs/lib/readFileBufferSafe.js.map +1 -0
- package/cjs/lib/readFileBufferSafeSync.d.ts +12 -0
- package/cjs/lib/readFileBufferSafeSync.d.ts.map +1 -0
- package/cjs/lib/readFileBufferSafeSync.js +24 -0
- package/cjs/lib/readFileBufferSafeSync.js.map +1 -0
- package/cjs/lib/readFileBufferSync.d.ts +10 -0
- package/cjs/lib/readFileBufferSync.d.ts.map +1 -0
- package/cjs/lib/readFileBufferSync.js +17 -0
- package/cjs/lib/readFileBufferSync.js.map +1 -0
- package/cjs/lib/readFileSafe.d.ts +14 -0
- package/cjs/lib/readFileSafe.d.ts.map +1 -0
- package/cjs/lib/readFileSafe.js +26 -0
- package/cjs/lib/readFileSafe.js.map +1 -0
- package/cjs/lib/readFileSafeSync.d.ts +14 -0
- package/cjs/lib/readFileSafeSync.d.ts.map +1 -0
- package/cjs/lib/readFileSafeSync.js +26 -0
- package/cjs/lib/readFileSafeSync.js.map +1 -0
- package/cjs/lib/readFileSync.d.ts +11 -0
- package/cjs/lib/readFileSync.d.ts.map +1 -0
- package/cjs/lib/readFileSync.js +18 -0
- package/cjs/lib/readFileSync.js.map +1 -0
- package/cjs/lib/readJsonFile.d.ts +2 -0
- package/cjs/lib/readJsonFile.d.ts.map +1 -0
- package/cjs/lib/readJsonFile.js +6 -0
- package/cjs/lib/readJsonFile.js.map +1 -0
- package/cjs/lib/readJsonFileSafe.d.ts +10 -0
- package/cjs/lib/readJsonFileSafe.d.ts.map +1 -0
- package/cjs/lib/readJsonFileSafe.js +22 -0
- package/cjs/lib/readJsonFileSafe.js.map +1 -0
- package/cjs/lib/readJsonFileSafeSync.d.ts +10 -0
- package/cjs/lib/readJsonFileSafeSync.d.ts.map +1 -0
- package/cjs/lib/readJsonFileSafeSync.js +22 -0
- package/cjs/lib/readJsonFileSafeSync.js.map +1 -0
- package/cjs/lib/readJsonFileSync.d.ts +2 -0
- package/cjs/lib/readJsonFileSync.d.ts.map +1 -0
- package/cjs/lib/readJsonFileSync.js +6 -0
- package/cjs/lib/readJsonFileSync.js.map +1 -0
- package/cjs/lib/removeDirectory.d.ts +2 -0
- package/cjs/lib/removeDirectory.d.ts.map +1 -0
- package/cjs/lib/removeDirectory.js +6 -0
- package/cjs/lib/removeDirectory.js.map +1 -0
- package/cjs/lib/removeDirectorySync.d.ts +2 -0
- package/cjs/lib/removeDirectorySync.d.ts.map +1 -0
- package/cjs/lib/removeDirectorySync.js +6 -0
- package/cjs/lib/removeDirectorySync.js.map +1 -0
- package/cjs/lib/removeFile.d.ts +2 -0
- package/cjs/lib/removeFile.d.ts.map +1 -0
- package/cjs/lib/removeFile.js +6 -0
- package/cjs/lib/removeFile.js.map +1 -0
- package/cjs/lib/removeFileSync.d.ts +2 -0
- package/cjs/lib/removeFileSync.d.ts.map +1 -0
- package/cjs/lib/removeFileSync.js +6 -0
- package/cjs/lib/removeFileSync.js.map +1 -0
- package/{src → cjs}/lib/tempFile.d.ts +3 -2
- package/cjs/lib/tempFile.d.ts.map +1 -0
- package/cjs/lib/tempFile.js +27 -0
- package/cjs/lib/tempFile.js.map +1 -0
- package/cjs/lib/tempFileSync.d.ts +7 -0
- package/cjs/lib/tempFileSync.d.ts.map +1 -0
- package/cjs/lib/tempFileSync.js +27 -0
- package/cjs/lib/tempFileSync.js.map +1 -0
- package/cjs/lib/types/IGetUserInputFromEditorOptions.d.ts +16 -0
- package/cjs/lib/types/IGetUserInputFromEditorOptions.d.ts.map +1 -0
- package/{src/lib/types/IEnsureValidWindowsPathOptions.js → cjs/lib/types/IGetUserInputFromEditorOptions.js} +1 -1
- package/cjs/lib/types/IGetUserInputFromEditorOptions.js.map +1 -0
- package/cjs/lib/types/IJFReadOptions.d.ts +2 -0
- package/cjs/lib/types/IJFReadOptions.d.ts.map +1 -0
- package/cjs/lib/types/IJFReadOptions.js +3 -0
- package/cjs/lib/types/IJFReadOptions.js.map +1 -0
- package/cjs/lib/types/IJFWriteOptions.d.ts +2 -0
- package/cjs/lib/types/IJFWriteOptions.d.ts.map +1 -0
- package/cjs/lib/types/IJFWriteOptions.js +3 -0
- package/cjs/lib/types/IJFWriteOptions.js.map +1 -0
- package/cjs/lib/types/IJsonOutputOptions.d.ts +2 -0
- package/cjs/lib/types/IJsonOutputOptions.d.ts.map +1 -0
- package/cjs/lib/types/IJsonOutputOptions.js +3 -0
- package/cjs/lib/types/IJsonOutputOptions.js.map +1 -0
- package/{src → cjs}/lib/types/ILogFileData.d.ts +1 -0
- package/cjs/lib/types/ILogFileData.d.ts.map +1 -0
- package/cjs/lib/types/IReadJsonFileOptions.d.ts +2 -0
- package/cjs/lib/types/IReadJsonFileOptions.d.ts.map +1 -0
- package/cjs/lib/types/IReadJsonFileOptions.js +3 -0
- package/cjs/lib/types/IReadJsonFileOptions.js.map +1 -0
- package/cjs/lib/types/JsonReplacerReviver.d.ts +2 -0
- package/cjs/lib/types/JsonReplacerReviver.d.ts.map +1 -0
- package/cjs/lib/types/JsonReplacerReviver.js +3 -0
- package/cjs/lib/types/JsonReplacerReviver.js.map +1 -0
- package/cjs/lib/updateFile.d.ts +11 -0
- package/cjs/lib/updateFile.d.ts.map +1 -0
- package/cjs/lib/updateFile.js +20 -0
- package/cjs/lib/updateFile.js.map +1 -0
- package/cjs/lib/updateFileSafe.d.ts +13 -0
- package/cjs/lib/updateFileSafe.d.ts.map +1 -0
- package/cjs/lib/updateFileSafe.js +28 -0
- package/cjs/lib/updateFileSafe.js.map +1 -0
- package/cjs/lib/updateFileSafeSync.d.ts +13 -0
- package/cjs/lib/updateFileSafeSync.d.ts.map +1 -0
- package/cjs/lib/updateFileSafeSync.js +28 -0
- package/cjs/lib/updateFileSafeSync.js.map +1 -0
- package/cjs/lib/updateFileSync.d.ts +11 -0
- package/cjs/lib/updateFileSync.d.ts.map +1 -0
- package/cjs/lib/updateFileSync.js +20 -0
- package/cjs/lib/updateFileSync.js.map +1 -0
- package/cjs/lib/updateJsonFile.d.ts +15 -0
- package/cjs/lib/updateJsonFile.d.ts.map +1 -0
- package/cjs/lib/updateJsonFile.js +20 -0
- package/cjs/lib/updateJsonFile.js.map +1 -0
- package/cjs/lib/updateJsonFileSafe.d.ts +17 -0
- package/cjs/lib/updateJsonFileSafe.d.ts.map +1 -0
- package/cjs/lib/updateJsonFileSafe.js +28 -0
- package/cjs/lib/updateJsonFileSafe.js.map +1 -0
- package/cjs/lib/updateJsonFileSafeSync.d.ts +17 -0
- package/cjs/lib/updateJsonFileSafeSync.d.ts.map +1 -0
- package/cjs/lib/updateJsonFileSafeSync.js +28 -0
- package/cjs/lib/updateJsonFileSafeSync.js.map +1 -0
- package/cjs/lib/updateJsonFileSync.d.ts +15 -0
- package/cjs/lib/updateJsonFileSync.d.ts.map +1 -0
- package/cjs/lib/updateJsonFileSync.js +20 -0
- package/cjs/lib/updateJsonFileSync.js.map +1 -0
- package/cjs/lib/writeFile.d.ts +2 -0
- package/cjs/lib/writeFile.d.ts.map +1 -0
- package/cjs/lib/writeFile.js +6 -0
- package/cjs/lib/writeFile.js.map +1 -0
- package/cjs/lib/writeFileSafe.d.ts +2 -0
- package/cjs/lib/writeFileSafe.d.ts.map +1 -0
- package/cjs/lib/writeFileSafe.js +6 -0
- package/cjs/lib/writeFileSafe.js.map +1 -0
- package/cjs/lib/writeFileSafeSync.d.ts +2 -0
- package/cjs/lib/writeFileSafeSync.d.ts.map +1 -0
- package/cjs/lib/writeFileSafeSync.js +6 -0
- package/cjs/lib/writeFileSafeSync.js.map +1 -0
- package/cjs/lib/writeFileSync.d.ts +2 -0
- package/cjs/lib/writeFileSync.d.ts.map +1 -0
- package/cjs/lib/writeFileSync.js +6 -0
- package/cjs/lib/writeFileSync.js.map +1 -0
- package/cjs/lib/writeJsonFile.d.ts +2 -0
- package/cjs/lib/writeJsonFile.d.ts.map +1 -0
- package/cjs/lib/writeJsonFile.js +6 -0
- package/cjs/lib/writeJsonFile.js.map +1 -0
- package/cjs/lib/writeJsonFileSafe.d.ts +2 -0
- package/cjs/lib/writeJsonFileSafe.d.ts.map +1 -0
- package/cjs/lib/writeJsonFileSafe.js +6 -0
- package/cjs/lib/writeJsonFileSafe.js.map +1 -0
- package/cjs/lib/writeJsonFileSafeSync.d.ts +2 -0
- package/cjs/lib/writeJsonFileSafeSync.d.ts.map +1 -0
- package/cjs/lib/writeJsonFileSafeSync.js +6 -0
- package/cjs/lib/writeJsonFileSafeSync.js.map +1 -0
- package/cjs/lib/writeJsonFileSync.d.ts +2 -0
- package/cjs/lib/writeJsonFileSync.d.ts.map +1 -0
- package/cjs/lib/writeJsonFileSync.js +6 -0
- package/cjs/lib/writeJsonFileSync.js.map +1 -0
- package/package.json +11 -16
- package/src/index.d.ts +0 -35
- package/src/index.js +0 -39
- package/src/index.js.map +0 -1
- package/src/lib/AppData.d.ts +0 -10
- package/src/lib/AppData.js +0 -24
- package/src/lib/AppData.js.map +0 -1
- package/src/lib/JsonFile.d.ts +0 -78
- package/src/lib/JsonFile.js +0 -158
- package/src/lib/JsonFile.js.map +0 -1
- package/src/lib/LogFile.d.ts +0 -50
- package/src/lib/LogFile.js +0 -158
- package/src/lib/LogFile.js.map +0 -1
- package/src/lib/absoluteToRelativePath.d.ts +0 -13
- package/src/lib/absoluteToRelativePath.js +0 -25
- package/src/lib/absoluteToRelativePath.js.map +0 -1
- package/src/lib/appendLineToFile.d.ts +0 -11
- package/src/lib/appendLineToFile.js +0 -28
- package/src/lib/appendLineToFile.js.map +0 -1
- package/src/lib/cleanDirectorySync.d.ts +0 -16
- package/src/lib/cleanDirectorySync.js +0 -29
- package/src/lib/cleanDirectorySync.js.map +0 -1
- package/src/lib/createDirectory.js +0 -25
- package/src/lib/createDirectory.js.map +0 -1
- package/src/lib/createDirectorySync.js.map +0 -1
- package/src/lib/createFileExtensionFilter.d.ts +0 -13
- package/src/lib/createFileExtensionFilter.js +0 -32
- package/src/lib/createFileExtensionFilter.js.map +0 -1
- package/src/lib/cwdpath.d.ts +0 -12
- package/src/lib/cwdpath.js +0 -21
- package/src/lib/cwdpath.js.map +0 -1
- package/src/lib/deleteDirectory.d.ts +0 -12
- package/src/lib/deleteDirectory.js +0 -23
- package/src/lib/deleteDirectory.js.map +0 -1
- package/src/lib/deleteDirectorySafe.d.ts +0 -13
- package/src/lib/deleteDirectorySafe.js +0 -25
- package/src/lib/deleteDirectorySafe.js.map +0 -1
- package/src/lib/deleteDirectorySafeSync.d.ts +0 -11
- package/src/lib/deleteDirectorySafeSync.js +0 -23
- package/src/lib/deleteDirectorySafeSync.js.map +0 -1
- package/src/lib/deleteDirectorySync.d.ts +0 -12
- package/src/lib/deleteDirectorySync.js +0 -22
- package/src/lib/deleteDirectorySync.js.map +0 -1
- package/src/lib/ensureValidWindowsPath.d.ts +0 -22
- package/src/lib/ensureValidWindowsPath.js +0 -54
- package/src/lib/ensureValidWindowsPath.js.map +0 -1
- package/src/lib/getDiskDrivesWindows.d.ts +0 -1
- package/src/lib/getDiskDrivesWindows.js +0 -19
- package/src/lib/getDiskDrivesWindows.js.map +0 -1
- package/src/lib/getDownloadsDirectory.d.ts +0 -1
- package/src/lib/getDownloadsDirectory.js +0 -11
- package/src/lib/getDownloadsDirectory.js.map +0 -1
- package/src/lib/getHomeDirectory.d.ts +0 -1
- package/src/lib/getHomeDirectory.js +0 -13
- package/src/lib/getHomeDirectory.js.map +0 -1
- package/src/lib/getLastMofifiedFileIn.js +0 -22
- package/src/lib/getLastMofifiedFileIn.js.map +0 -1
- package/src/lib/getRootDir.d.ts +0 -1
- package/src/lib/getRootDir.js +0 -10
- package/src/lib/getRootDir.js.map +0 -1
- package/src/lib/normalizeFileExtension.d.ts +0 -22
- package/src/lib/normalizeFileExtension.js +0 -36
- package/src/lib/normalizeFileExtension.js.map +0 -1
- package/src/lib/readFileLastLines.d.ts +0 -7
- package/src/lib/readFileLastLines.js +0 -18
- package/src/lib/readFileLastLines.js.map +0 -1
- package/src/lib/readJsonFile.d.ts +0 -12
- package/src/lib/readJsonFile.js +0 -23
- package/src/lib/readJsonFile.js.map +0 -1
- package/src/lib/readJsonFileSync.d.ts +0 -12
- package/src/lib/readJsonFileSync.js +0 -21
- package/src/lib/readJsonFileSync.js.map +0 -1
- package/src/lib/readPackageJson.d.ts +0 -1
- package/src/lib/readPackageJson.js +0 -15
- package/src/lib/readPackageJson.js.map +0 -1
- package/src/lib/removeIllegalFilenameCharacters.d.ts +0 -1
- package/src/lib/removeIllegalFilenameCharacters.js +0 -8
- package/src/lib/removeIllegalFilenameCharacters.js.map +0 -1
- package/src/lib/tempFile.js +0 -26
- package/src/lib/tempFile.js.map +0 -1
- package/src/lib/types/IEnsureValidWindowsPathOptions.d.ts +0 -10
- package/src/lib/types/IEnsureValidWindowsPathOptions.js.map +0 -1
- package/src/lib/updateJsonFile.d.ts +0 -18
- package/src/lib/updateJsonFile.js +0 -44
- package/src/lib/updateJsonFile.js.map +0 -1
- package/src/lib/updateJsonFileSync.d.ts +0 -18
- package/src/lib/updateJsonFileSync.js +0 -42
- package/src/lib/updateJsonFileSync.js.map +0 -1
- package/src/lib/wipeDirectorySafe.d.ts +0 -1
- package/src/lib/wipeDirectorySafe.js +0 -14
- package/src/lib/wipeDirectorySafe.js.map +0 -1
- package/src/lib/writeJsonFile.d.ts +0 -14
- package/src/lib/writeJsonFile.js +0 -25
- package/src/lib/writeJsonFile.js.map +0 -1
- package/src/lib/writeJsonFileSync.d.ts +0 -13
- package/src/lib/writeJsonFileSync.js +0 -22
- package/src/lib/writeJsonFileSync.js.map +0 -1
- /package/{src → cjs}/lib/types/ILogFileData.js +0 -0
- /package/{src → cjs}/lib/types/ILogFileData.js.map +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateJsonFileSync = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
6
|
+
/**
|
|
7
|
+
* Updates a JSON file based on a provided update function.
|
|
8
|
+
* The update function takes the file's current source string as a parameter and should return an object.
|
|
9
|
+
*
|
|
10
|
+
* @param filepath - The path to the file to update.
|
|
11
|
+
* @param update - The function to update the file. Takes the parsed source string as a parameter and should return a string.
|
|
12
|
+
* @param encoding - The encoding to use when reading and writing the file.
|
|
13
|
+
*/
|
|
14
|
+
function updateJsonFileSync(filepath, update, options = {}) {
|
|
15
|
+
const parsed = fs_extra_1.default.readJsonSync(filepath, options.read);
|
|
16
|
+
const retval = update(parsed);
|
|
17
|
+
fs_extra_1.default.writeJsonSync(filepath, retval, options.write || { spaces: 2 });
|
|
18
|
+
}
|
|
19
|
+
exports.updateJsonFileSync = updateJsonFileSync;
|
|
20
|
+
//# sourceMappingURL=updateJsonFileSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateJsonFileSync.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/updateJsonFileSync.ts"],"names":[],"mappings":";;;;AAAA,gEAAyB;AAIzB;;;;;;;GAOG;AAEH,SAAgB,kBAAkB,CAChC,QAAgB,EAChB,MAAiF,EACjF,UAA8D,EAAE;IAEhE,MAAM,MAAM,GAAG,kBAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACtD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;IAC7B,kBAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAA;AACpE,CAAC;AARD,gDAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFile.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeFile = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeFile", { enumerable: true, get: function () { return fs_extra_1.writeFile; } });
|
|
6
|
+
//# sourceMappingURL=writeFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFile.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFile.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAA3B,qGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFileSafe.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFileSafe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeFileSafe = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeFileSafe", { enumerable: true, get: function () { return fs_extra_1.outputFile; } });
|
|
6
|
+
//# sourceMappingURL=writeFileSafe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFileSafe.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFileSafe.ts"],"names":[],"mappings":";;;AAAA,qCAAsD;AAA7C,yGAAA,UAAU,OAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFileSafeSync.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFileSafeSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeFileSafeSync = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeFileSafeSync", { enumerable: true, get: function () { return fs_extra_1.outputFileSync; } });
|
|
6
|
+
//# sourceMappingURL=writeFileSafeSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFileSafeSync.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFileSafeSync.ts"],"names":[],"mappings":";;;AAAA,qCAA8D;AAArD,6GAAA,cAAc,OAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFileSync.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFileSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeFileSync = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeFileSync", { enumerable: true, get: function () { return fs_extra_1.writeFileSync; } });
|
|
6
|
+
//# sourceMappingURL=writeFileSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeFileSync.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeFileSync.ts"],"names":[],"mappings":";;;AAAA,qCAAwC;AAA/B,yGAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFile.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeJsonFile = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeJsonFile", { enumerable: true, get: function () { return fs_extra_1.writeJson; } });
|
|
6
|
+
//# sourceMappingURL=writeJsonFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFile.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFile.ts"],"names":[],"mappings":";;;AAAA,qCAAqD;AAA5C,yGAAA,SAAS,OAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFileSafe.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFileSafe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeJsonFileSafe = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeJsonFileSafe", { enumerable: true, get: function () { return fs_extra_1.outputJson; } });
|
|
6
|
+
//# sourceMappingURL=writeJsonFileSafe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFileSafe.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFileSafe.ts"],"names":[],"mappings":";;;AAAA,qCAA0D;AAAjD,6GAAA,UAAU,OAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFileSafeSync.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFileSafeSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeJsonFileSafeSync = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeJsonFileSafeSync", { enumerable: true, get: function () { return fs_extra_1.outputJsonSync; } });
|
|
6
|
+
//# sourceMappingURL=writeJsonFileSafeSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFileSafeSync.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFileSafeSync.ts"],"names":[],"mappings":";;;AAAA,qCAAkE;AAAzD,iHAAA,cAAc,OAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFileSync.d.ts","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFileSync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeJsonFileSync = void 0;
|
|
4
|
+
var fs_extra_1 = require("fs-extra");
|
|
5
|
+
Object.defineProperty(exports, "writeJsonFileSync", { enumerable: true, get: function () { return fs_extra_1.writeJsonSync; } });
|
|
6
|
+
//# sourceMappingURL=writeJsonFileSync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeJsonFileSync.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/writeJsonFileSync.ts"],"names":[],"mappings":";;;AAAA,qCAA6D;AAApD,6GAAA,aAAa,OAAqB"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bemoje/fs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"main": "cjs/index.js",
|
|
6
|
+
"types": "cjs/index.d.ts",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"fs-extra": "^11.2.0",
|
|
9
|
+
"tslib": "^2.6.2"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [],
|
|
7
13
|
"author": {
|
|
8
14
|
"name": "Benjamin Møller Jensen",
|
|
9
15
|
"email": "bemoje@bemoje.net",
|
|
10
16
|
"url": "https://github.com/bemoje/"
|
|
11
17
|
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@bemoje/os": "latest",
|
|
16
|
-
"@bemoje/string": "latest",
|
|
17
|
-
"read-last-lines": "^1.8.0",
|
|
18
|
-
"tslib": "^2.3.0"
|
|
19
|
-
},
|
|
20
18
|
"repository": {
|
|
21
19
|
"type": "git",
|
|
22
20
|
"url": "git+https://github.com/bemoje/tsmono.git"
|
|
@@ -28,8 +26,5 @@
|
|
|
28
26
|
"bugs": {
|
|
29
27
|
"url": "https://github.com/bemoje/tsmono/issues"
|
|
30
28
|
},
|
|
31
|
-
"homepage": "https://github.com/bemoje/tsmono"
|
|
32
|
-
"type": "commonjs",
|
|
33
|
-
"typings": "./src/index.d.ts",
|
|
34
|
-
"devDependencies": {}
|
|
29
|
+
"homepage": "https://github.com/bemoje/tsmono"
|
|
35
30
|
}
|
package/src/index.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export * from './lib/absoluteToRelativePath';
|
|
2
|
-
export * from './lib/AppData';
|
|
3
|
-
export * from './lib/appendLineToFile';
|
|
4
|
-
export * from './lib/cleanDirectorySync';
|
|
5
|
-
export * from './lib/createDirectory';
|
|
6
|
-
export * from './lib/createDirectorySync';
|
|
7
|
-
export * from './lib/createFileExtensionFilter';
|
|
8
|
-
export * from './lib/cwdpath';
|
|
9
|
-
export * from './lib/deleteDirectory';
|
|
10
|
-
export * from './lib/deleteDirectorySafe';
|
|
11
|
-
export * from './lib/deleteDirectorySafeSync';
|
|
12
|
-
export * from './lib/deleteDirectorySync';
|
|
13
|
-
export * from './lib/ensureValidWindowsPath';
|
|
14
|
-
export * from './lib/getDiskDrivesWindows';
|
|
15
|
-
export * from './lib/getDownloadsDirectory';
|
|
16
|
-
export * from './lib/getHomeDirectory';
|
|
17
|
-
export * from './lib/getJsonIndentation';
|
|
18
|
-
export * from './lib/getLastMofifiedFileIn';
|
|
19
|
-
export * from './lib/getRootDir';
|
|
20
|
-
export * from './lib/JsonFile';
|
|
21
|
-
export * from './lib/LogFile';
|
|
22
|
-
export * from './lib/normalizeFileExtension';
|
|
23
|
-
export * from './lib/readFileLastLines';
|
|
24
|
-
export * from './lib/readJsonFile';
|
|
25
|
-
export * from './lib/readJsonFileSync';
|
|
26
|
-
export * from './lib/readPackageJson';
|
|
27
|
-
export * from './lib/removeIllegalFilenameCharacters';
|
|
28
|
-
export * from './lib/tempFile';
|
|
29
|
-
export * from './lib/types/IEnsureValidWindowsPathOptions';
|
|
30
|
-
export * from './lib/types/ILogFileData';
|
|
31
|
-
export * from './lib/updateJsonFile';
|
|
32
|
-
export * from './lib/updateJsonFileSync';
|
|
33
|
-
export * from './lib/wipeDirectorySafe';
|
|
34
|
-
export * from './lib/writeJsonFile';
|
|
35
|
-
export * from './lib/writeJsonFileSync';
|
package/src/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./lib/absoluteToRelativePath"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./lib/AppData"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./lib/appendLineToFile"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./lib/cleanDirectorySync"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./lib/createDirectory"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./lib/createDirectorySync"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./lib/createFileExtensionFilter"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./lib/cwdpath"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./lib/deleteDirectory"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./lib/deleteDirectorySafe"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./lib/deleteDirectorySafeSync"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./lib/deleteDirectorySync"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./lib/ensureValidWindowsPath"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./lib/getDiskDrivesWindows"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./lib/getDownloadsDirectory"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./lib/getHomeDirectory"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./lib/getJsonIndentation"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./lib/getLastMofifiedFileIn"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./lib/getRootDir"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./lib/JsonFile"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./lib/LogFile"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./lib/normalizeFileExtension"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./lib/readFileLastLines"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./lib/readJsonFile"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./lib/readJsonFileSync"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./lib/readPackageJson"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./lib/removeIllegalFilenameCharacters"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./lib/tempFile"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./lib/types/IEnsureValidWindowsPathOptions"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./lib/types/ILogFileData"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./lib/updateJsonFile"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./lib/updateJsonFileSync"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./lib/wipeDirectorySafe"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./lib/writeJsonFile"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./lib/writeJsonFileSync"), exports);
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/fs/src/index.ts"],"names":[],"mappings":";;;AAAA,uEAA4C;AAC5C,wDAA6B;AAC7B,iEAAsC;AACtC,mEAAwC;AACxC,gEAAqC;AACrC,oEAAyC;AACzC,0EAA+C;AAC/C,wDAA6B;AAC7B,gEAAqC;AACrC,oEAAyC;AACzC,wEAA6C;AAC7C,oEAAyC;AACzC,uEAA4C;AAC5C,qEAA0C;AAC1C,sEAA2C;AAC3C,iEAAsC;AACtC,mEAAwC;AACxC,sEAA2C;AAC3C,2DAAgC;AAChC,yDAA8B;AAC9B,wDAA6B;AAC7B,uEAA4C;AAC5C,kEAAuC;AACvC,6DAAkC;AAClC,iEAAsC;AACtC,gEAAqC;AACrC,gFAAqD;AACrD,yDAA8B;AAC9B,qFAA0D;AAC1D,mEAAwC;AACxC,+DAAoC;AACpC,mEAAwC;AACxC,kEAAuC;AACvC,8DAAmC;AACnC,kEAAuC"}
|
package/src/lib/AppData.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { JsonFile } from './JsonFile';
|
|
2
|
-
import { LogFile } from './LogFile';
|
|
3
|
-
import { ILogFileData } from './types/ILogFileData';
|
|
4
|
-
export declare class AppData<A extends Record<string, unknown>, C extends Record<string, unknown>> {
|
|
5
|
-
directory: string;
|
|
6
|
-
app: JsonFile<A>;
|
|
7
|
-
user: JsonFile<C>;
|
|
8
|
-
history: LogFile<ILogFileData<C>>;
|
|
9
|
-
constructor(appAuthor: string, appName: string, configName: string);
|
|
10
|
-
}
|
package/src/lib/AppData.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppData = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const os_1 = require("@bemoje/os");
|
|
6
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
7
|
-
const JsonFile_1 = require("./JsonFile");
|
|
8
|
-
const LogFile_1 = require("./LogFile");
|
|
9
|
-
class AppData {
|
|
10
|
-
constructor(appAuthor, appName, configName) {
|
|
11
|
-
this.directory = path_1.default.join((0, os_1.getAppDataPath)(), appAuthor, appName, configName);
|
|
12
|
-
this.app = new JsonFile_1.JsonFile(path_1.default.join(this.directory, 'appdata.json'), false);
|
|
13
|
-
this.user = new JsonFile_1.JsonFile(path_1.default.join(this.directory, 'config.json'), true);
|
|
14
|
-
this.history = new LogFile_1.LogFile(path_1.default.join(this.directory, 'history.log'));
|
|
15
|
-
this.app.on('set', (time, k, v) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
yield this.history.append({ source: 'app', key: k, value: v }, time);
|
|
17
|
-
}));
|
|
18
|
-
this.user.on('set', (time, k, v) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
yield this.history.append({ source: 'user', key: k, value: v }, time);
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.AppData = AppData;
|
|
24
|
-
//# sourceMappingURL=AppData.js.map
|
package/src/lib/AppData.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppData.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/AppData.ts"],"names":[],"mappings":";;;;AAAA,mCAA2C;AAC3C,wDAAuB;AACvB,yCAAqC;AACrC,uCAAmC;AAGnC,MAAa,OAAO;IAMlB,YAAY,SAAiB,EAAE,OAAe,EAAE,UAAkB;QAChE,IAAI,CAAC,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,IAAA,mBAAc,GAAE,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC,CAAA;QAC5E,IAAI,CAAC,GAAG,GAAG,IAAI,mBAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,KAAK,CAAC,CAAA;QACzE,IAAI,CAAC,IAAI,GAAG,IAAI,mBAAQ,CAAC,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE,IAAI,CAAC,CAAA;QACxE,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,cAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAA;QACpE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,CAAO,IAAI,EAAE,CAAS,EAAE,CAAI,EAAE,EAAE;YACjD,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;QACtE,CAAC,CAAA,CAAC,CAAA;QACF,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAO,IAAI,EAAE,CAAS,EAAE,CAAI,EAAE,EAAE;YAClD,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;QACvE,CAAC,CAAA,CAAC,CAAA;IACJ,CAAC;CACF;AAlBD,0BAkBC"}
|
package/src/lib/JsonFile.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import EventEmitter from 'events';
|
|
3
|
-
/**
|
|
4
|
-
* Represents a JSON file manager that ensures immutable data since everything is serialized and deserialized before receiving or returning any data.
|
|
5
|
-
*/
|
|
6
|
-
export declare class JsonFile<T extends Record<string, any>> extends EventEmitter {
|
|
7
|
-
#private;
|
|
8
|
-
/**
|
|
9
|
-
* The filepath of the JSON file.
|
|
10
|
-
*/
|
|
11
|
-
readonly filepath: string;
|
|
12
|
-
/**
|
|
13
|
-
* Determines whether the JSON file should be pretty-printed.
|
|
14
|
-
*/
|
|
15
|
-
prettyPrint: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Gets the data stored in the JSON file.
|
|
18
|
-
* @returns A deep copy of the data.
|
|
19
|
-
*/
|
|
20
|
-
get data(): T;
|
|
21
|
-
/**
|
|
22
|
-
* Constructs a new instance of the JsonFile class.
|
|
23
|
-
* @param filepath - The filepath of the JSON file.
|
|
24
|
-
* @param prettyPrint - Determines whether the JSON file should be pretty-printed.
|
|
25
|
-
*/
|
|
26
|
-
constructor(filepath: string, prettyPrint?: boolean);
|
|
27
|
-
/**
|
|
28
|
-
* Gets the value associated with the specified key.
|
|
29
|
-
* @param key - The key to retrieve the value for.
|
|
30
|
-
* @returns The value associated with the key.
|
|
31
|
-
*/
|
|
32
|
-
get(key: keyof T): any;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the value associated with the specified key.
|
|
35
|
-
* @param key - The key to set the value for.
|
|
36
|
-
* @param value - The value to set.
|
|
37
|
-
*/
|
|
38
|
-
set(key: keyof T, value: any): void;
|
|
39
|
-
/**
|
|
40
|
-
* Checks if the specified key exists in the JSON file.
|
|
41
|
-
* @param key - The key to check.
|
|
42
|
-
* @returns True if the key exists, false otherwise.
|
|
43
|
-
*/
|
|
44
|
-
has(key: keyof T): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Deletes the value associated with the specified key.
|
|
47
|
-
* @param key - The key to delete.
|
|
48
|
-
*/
|
|
49
|
-
delete(key: keyof T): void;
|
|
50
|
-
/**
|
|
51
|
-
* Gets the value associated with the specified key, or sets it to the provided default value if it doesn't exist.
|
|
52
|
-
* @param key - The key to get or set.
|
|
53
|
-
* @param getValue - A function that returns the default value if the key doesn't exist.
|
|
54
|
-
* @returns The value associated with the key, or the default value if it doesn't exist.
|
|
55
|
-
*/
|
|
56
|
-
getOrElse(key: string, getValue: () => any): any;
|
|
57
|
-
/**
|
|
58
|
-
* Clears all the data in the JSON file.
|
|
59
|
-
*/
|
|
60
|
-
clear(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Assigns new data to the JSON file.
|
|
63
|
-
* @param data - The data to assign.
|
|
64
|
-
*/
|
|
65
|
-
assign(data: T): void;
|
|
66
|
-
/**
|
|
67
|
-
* Ensures that the directory containing the JSON file exists.
|
|
68
|
-
*/
|
|
69
|
-
ensureDirectoryExists(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Saves the data to the JSON file.
|
|
72
|
-
*/
|
|
73
|
-
saveFile(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Loads the data from the JSON file.
|
|
76
|
-
*/
|
|
77
|
-
loadFile(): void;
|
|
78
|
-
}
|
package/src/lib/JsonFile.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _JsonFile_data;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.JsonFile = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const events_1 = tslib_1.__importDefault(require("events"));
|
|
7
|
-
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
8
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
-
const readJsonFileSync_1 = require("./readJsonFileSync");
|
|
10
|
-
const writeJsonFileSync_1 = require("./writeJsonFileSync");
|
|
11
|
-
function deepClone(obj) {
|
|
12
|
-
if (typeof obj !== 'object' || obj === null)
|
|
13
|
-
return obj;
|
|
14
|
-
try {
|
|
15
|
-
return JSON.parse(JSON.stringify(obj));
|
|
16
|
-
}
|
|
17
|
-
catch (error) {
|
|
18
|
-
return '';
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Represents a JSON file manager that ensures immutable data since everything is serialized and deserialized before receiving or returning any data.
|
|
23
|
-
*/
|
|
24
|
-
class JsonFile extends events_1.default {
|
|
25
|
-
/**
|
|
26
|
-
* Gets the data stored in the JSON file.
|
|
27
|
-
* @returns A deep copy of the data.
|
|
28
|
-
*/
|
|
29
|
-
get data() {
|
|
30
|
-
return deepClone(tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f"));
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Constructs a new instance of the JsonFile class.
|
|
34
|
-
* @param filepath - The filepath of the JSON file.
|
|
35
|
-
* @param prettyPrint - Determines whether the JSON file should be pretty-printed.
|
|
36
|
-
*/
|
|
37
|
-
constructor(filepath, prettyPrint = false) {
|
|
38
|
-
super();
|
|
39
|
-
/**
|
|
40
|
-
* The data stored in the JSON file.
|
|
41
|
-
*/
|
|
42
|
-
_JsonFile_data.set(this, void 0);
|
|
43
|
-
this.filepath = filepath;
|
|
44
|
-
tslib_1.__classPrivateFieldSet(this, _JsonFile_data, {}, "f");
|
|
45
|
-
this.prettyPrint = prettyPrint;
|
|
46
|
-
this.ensureDirectoryExists();
|
|
47
|
-
if (fs_1.default.existsSync(this.filepath)) {
|
|
48
|
-
this.loadFile();
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
(0, writeJsonFileSync_1.writeJsonFileSync)(this.filepath, tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f"), this.prettyPrint);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Gets the value associated with the specified key.
|
|
56
|
-
* @param key - The key to retrieve the value for.
|
|
57
|
-
* @returns The value associated with the key.
|
|
58
|
-
*/
|
|
59
|
-
get(key) {
|
|
60
|
-
return deepClone(tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f")[key]);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Sets the value associated with the specified key.
|
|
64
|
-
* @param key - The key to set the value for.
|
|
65
|
-
* @param value - The value to set.
|
|
66
|
-
*/
|
|
67
|
-
set(key, value) {
|
|
68
|
-
value = deepClone(value);
|
|
69
|
-
if (tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f")[key] === value)
|
|
70
|
-
return;
|
|
71
|
-
if (value === undefined || value === null) {
|
|
72
|
-
if (this.has(key))
|
|
73
|
-
this.delete(key);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
const json = JSON.stringify(value);
|
|
78
|
-
if (json === JSON.stringify(tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f")[key]))
|
|
79
|
-
return;
|
|
80
|
-
value = JSON.parse(json);
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
value = '';
|
|
84
|
-
}
|
|
85
|
-
this.emit('set', Date.now(), key, value);
|
|
86
|
-
tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f")[key] = value;
|
|
87
|
-
this.saveFile();
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Checks if the specified key exists in the JSON file.
|
|
91
|
-
* @param key - The key to check.
|
|
92
|
-
* @returns True if the key exists, false otherwise.
|
|
93
|
-
*/
|
|
94
|
-
has(key) {
|
|
95
|
-
return tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f")[key] !== undefined;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Deletes the value associated with the specified key.
|
|
99
|
-
* @param key - The key to delete.
|
|
100
|
-
*/
|
|
101
|
-
delete(key) {
|
|
102
|
-
delete tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f")[key];
|
|
103
|
-
this.emit('set', Date.now(), key, void 0);
|
|
104
|
-
this.saveFile();
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Gets the value associated with the specified key, or sets it to the provided default value if it doesn't exist.
|
|
108
|
-
* @param key - The key to get or set.
|
|
109
|
-
* @param getValue - A function that returns the default value if the key doesn't exist.
|
|
110
|
-
* @returns The value associated with the key, or the default value if it doesn't exist.
|
|
111
|
-
*/
|
|
112
|
-
getOrElse(key, getValue) {
|
|
113
|
-
if (this.has(key)) {
|
|
114
|
-
return deepClone(this.get(key));
|
|
115
|
-
}
|
|
116
|
-
const value = deepClone(getValue());
|
|
117
|
-
this.set(key, value);
|
|
118
|
-
return value;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Clears all the data in the JSON file.
|
|
122
|
-
*/
|
|
123
|
-
clear() {
|
|
124
|
-
for (const key of Object.keys(tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f"))) {
|
|
125
|
-
this.set(key, undefined);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Assigns new data to the JSON file.
|
|
130
|
-
* @param data - The data to assign.
|
|
131
|
-
*/
|
|
132
|
-
assign(data) {
|
|
133
|
-
for (const [key, value] of Object.entries(deepClone(data))) {
|
|
134
|
-
this.set(key, value);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Ensures that the directory containing the JSON file exists.
|
|
139
|
-
*/
|
|
140
|
-
ensureDirectoryExists() {
|
|
141
|
-
fs_1.default.mkdirSync(path_1.default.dirname(this.filepath), { recursive: true });
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Saves the data to the JSON file.
|
|
145
|
-
*/
|
|
146
|
-
saveFile() {
|
|
147
|
-
(0, writeJsonFileSync_1.writeJsonFileSync)(this.filepath, tslib_1.__classPrivateFieldGet(this, _JsonFile_data, "f"), this.prettyPrint);
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Loads the data from the JSON file.
|
|
151
|
-
*/
|
|
152
|
-
loadFile() {
|
|
153
|
-
tslib_1.__classPrivateFieldSet(this, _JsonFile_data, (0, readJsonFileSync_1.readJsonFileSync)(this.filepath), "f");
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
exports.JsonFile = JsonFile;
|
|
157
|
-
_JsonFile_data = new WeakMap();
|
|
158
|
-
//# sourceMappingURL=JsonFile.js.map
|
package/src/lib/JsonFile.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JsonFile.js","sourceRoot":"","sources":["../../../../../packages/fs/src/lib/JsonFile.ts"],"names":[],"mappings":"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"}
|