UNPKG

lamed_io

Version:
28 lines (26 loc) 1.96 kB
## Function Descriptions | Function |Description | | ---- | ---- | [**About**](functions/About.md)(dirname = '', showAbout = true) | | [**LocalStorage**](functions/LocalStorage.md)(folder = './.appSettings') | | [**Version**](functions/Version.md)(dirname = '', showVersion = true) | | [**copyFileSync**](functions/copyFileSync.md)(fromFile, toFile) |Copy file synchronously | [**exist**](functions/exist.md)(dirOrFile) | | [**existFile**](functions/existFile.md)(file, throwError = false) | | [**existFolder**](functions/existFolder.md)(folder, throwError = false) | | [**fileGetExt**](functions/fileGetExt.md)(file) | | [**fileSetExtension**](functions/fileSetExtension.md)(file, ext = '') |Add ext to the file name if non exist else replace the extension with the new one | [**fileSetStamp**](functions/fileSetStamp.md)(file, timeStamp = false, now = new Date() | | [**file_2Array**](functions/file_2Array.md)(file) |Convert a document into an array of lines | [**isRootFolder**](functions/isRootFolder.md)() | | [**isValid**](functions/isValid.md)(string =) | | [**makeValid**](functions/makeValid.md)(() | | [**mkdir**](functions/mkdir.md)(folder) |Test if the folder exist. If not create it | [**packageJson**](functions/packageJson.md)(dirname = '') |Return the package.json file | [**packageJson_Path**](functions/packageJson_Path.md)(dirname = '') |Return the path to the package.json file | [**readFile**](functions/readFile.md)(file) |Read contents of a file | [**readFileSync**](functions/readFileSync.md)(file, showLog = false) |Read text to a file Synchronously | [**readFileSync_2Array**](functions/readFileSync_2Array.md)(file, showLog = false) |Read file synchronously into an array of lines | [**rootFolder**](functions/rootFolder.md)(dirname = '') | | [**writeFile**](functions/writeFile.md)(file, text) |Write text to a file | [**writeFileSync**](functions/writeFileSync.md)(file, text, showLog = false) |Write text to a file synchronously |