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

save-json-file

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

save-json-file

Save a JSON object to a file.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

save-json-file

Save a JSON object to a file.

Installation

yarn add save-json

Usage

This package exports a function accepting two parameters:

  • json: the json object to save
  • filename (optional, defaults to "untitled"): the file name

Example:

import saveJSON from 'save-json-file';

saveJSON([
    {
        label: 'Publish npm package',
        isDone: false
    },
    {
        label: 'Write some documentation',
        isDone: false
    }
], 'todos');

FAQs

Package last updated on 30 Jul 2018

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