Socket
Book a DemoInstallSign in
Socket

jsoncon

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

jsoncon

jsoncon is a javascript text file to json convertor. jsoncon inputs a text file and outputs a json file in array format.

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

#jsoncon

jsoncon is a javascript text file to json convertor. jsoncon inputs a text file and outputs a json file in array format.

How to use:

npm i jscon

import convertor from 'jsoncon'

const obj = new convertor();
obj.convert("index.txt", "index.json") //index.txt is the input file and index.json is the json file

You can use what ever txt file you want but it has to exist and it has to be a txt file.

index.json file just creates a new json file called index.json or it overwrites a preexisting json file.

FAQs

Package last updated on 24 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