0.5.0 • Published 4 years ago
ts-file-io v0.5.0
Node.js File I/O Utils
Dependencies:
- fancy-log (for TransformFile)
- Q (for TransformFile)
Some common file read/write/manipulate operations I've found useful in Node.js in previous projects.
See the test/ directory for example usage of the functions in this project.
file-io/
Utilities for reading/writing and manipulating files.
ReadFilecontains methods for reading text files (raw or split into lines) and JSON files. As well asreadLinesSection()andreadLinesSections()for splitting an array of lines (strings) into groups.WriteFilecontains methods for writing lines to a text file, replacing '\n' with '\r\n', and writing groups of lines read by ReadFile.TransformFilefor transforming template files (seetest/TransformFileTestfor example)
parsers/
Parent directory for simple file type parsers/manipulators.
Currently contains a manipulator for VS .csproj files.
0.5.0
4 years ago