jsondrive
easily upload json files to your google drive
googleapis for node is an awesome lib, but if you just want a very easy and simple api to create and update json files, try this.
Install
npm install jsondrive --save
Usage:
When I was building this, the main purpose was to add an entry into an array inside a json file at google drive. With this method, you will insert an object into that array and write to the json file.
//load our facade object const jsondrive = ; //require your json key file provided by google developer console const googleKey = ; //add an jsonEntry into the 'test' json file. //gDriveApi is null here because if you provide the googleKey obj, the drive api object will be created automatically. jsondrive ; //But if you want to construct the drive api manually, you can do this: jsondrive