🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

json-format

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-format

JSON format for good presentation

Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

json-format

Change for using with npm modules. original version.

Instaling

  npm install json-format

Usage

  var jsonFormat = require('./');
  var fs = require('fs');
  var obj = {
    a: 1,
    b: 2
  }

  fs.writeFile('example.json', jsonFormat(obj), function(err){
    if (err) throw err;
    console.log('saved');
  });

Result

{
  "a": 1,
  "b": 2
}

Keywords

json

FAQs

Package last updated on 14 Jul 2014

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