@zoppa/node
v1.3.2
Published
Helpful functions for nodeJS
Maintainers
Readme
Useful functions for nodeJS:
Files: - writeToJson - write to beautiful .json file; - appendToJson - append data to beautiful .json file; - getFilesFromFolder - get all files from target folder; - getNestedFilesFolders - get all files from target folder with need depth; - getFileFromUrlToBuffer - get file from url and response it like a buffer; - getFileFromUrlToBufferWithCompress - get file from url and response it like a buffer with compressed width and size; - getFileFromUrlToDisk - get file from url and download it as file to disk; - getFileFromUrlToDiskWithCompress - get file from url and download it as file to disk with compress; - ensurePath - check the path and if it does npt exist - create it - renameFile - rename file - renameFileBunch - rename bunch of files
