why?
install
npm install apjson
how to use?
const Apjson = ;const jsonFile = "example.json"; jsonFile; jsonFile; jsonFile;
new Apjson(path, [space])
parameter | type | default |
---|---|---|
path | string | null |
space | number | 2 |
Apjson.prototype.append(item)
parameter | type |
---|---|
item | object |
append stringified object
Apjson.prototype.close()
when you are not adding more, close the writable stream.