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

jsonfile-stable

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonfile-stable

Write json file in stable format

latest
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

Write JSON in Stable Format

writeFileSync

import jsonfileStable from "jsonfile-stable";
const oJson = {
	b: 1,
	a: 1
}
jsonfileStable.writeFileSync('test.json', oJson);

// output 
{
	a: 1,
	b: 1
}

readFileSync

Unnessessery, but keep same interface as jsonfile.

import jsonfileStable from "jsonfile-stable";
const oJson = jsonfileStable.readFileSync('test.json');

Keywords

jsonfile

FAQs

Package last updated on 19 Mar 2025

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