dcs-file-updater
v0.0.4
Published
This library helps developers communicate with DCS API to update files in a certain repo.
Readme
DCS File Updater
This library helps developers communicate with DCS API to update files in a certain repo.
Example:
import { getFile, updateFile } from "dcs-file-updater"
getFile("my-username", "my-repo-name", "./file/path.txt");
updateFile("my-username", "my-repo-name", "./file/path.txt", "Hello world!", "5a6f465c78687");
This example gets a file ("./translate/figs-metaphor/01.md") from the "es-419_ta" repository owned by "es-419_gl" organization in dcs. Then updates it passing it the new content and the authentication token.
