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

formatflex

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

formatflex

FormatFlex is a file converter toolkit. It allows you to convert to many different file types.

unpublished
latest
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

FormatFlex

FormatFlex is a file converter toolkit. It allows you to convert to many different file types.

Installation

npm install formatflex

Usage

Initialize

const formatflex = require("formatflex");
const formater = formatflex.initFormater();

Supported operations

const { zipFolder } = formater.utils;
const { jsonToSQL, jsonToCSV, jsonToXML, jsonToYAML } = formater.json;
const { csvToJSON, csvToXML } = formater.csv;

JSON formater

const inputPath = "./myJSONfile.json";
const outputPath = "./output.csv";
formater.json.jsonToCSV(inputPath, outputPath);
formater.json.jsonToYAML(inputPath, outputPath);
formater.json.jsonToSQL(inputPath, outputPath);
formater.json.jsonToXML(inputPath, outputPath);

CSV formater

const inputCSV = "./myCSVfile.csv";
const outputPath = "./output.json";
formater.csv.csvToJSON(inputCSV, outputPath);
formater.csv.csvToXML(inputPath, outputPath);

Zip a folder

const folderPathToZip = "./src";
const outputPath = "./myZip.zip";
zipFolder(folderPathToZip, outputPath);

Keywords

formater

FAQs

Package last updated on 13 Sep 2023

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