New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

apjson

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apjson

append json file in correct format and more easy.

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
4
-92.73%
Maintainers
1
Weekly downloads
 
Created
Source

why?

why

install

npm install apjson

how to use?

const Apjson = require("apjson");
const jsonFile = new Apjson("example.json");

jsonFile.append({title: "hello, world"});

jsonFile.append({
    title: "test1",
    time: "20:49",
});

jsonFile.close();

new Apjson(path, [space])

parametertypedefault
pathstringnull
spacenumber2

Apjson.prototype.append(item)

parametertype
itemobject

append stringified object

Apjson.prototype.close()

when you are not adding more, close the writable stream.

Keywords

json

FAQs

Package last updated on 15 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts