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

vdfjs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vdfjs

Parser for Valve's KeyValue data files - converts VDF to JSON

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
1
Created
Source

VDF.js

Convert Valve's KeyValue format to JSON

Install

npm install vdfjs

Usage

In a script

var fs = require('fs');
var vdf = require('vdfjs');
var someFile = fs.readFileSync('path/to/file.txt', 'utf-8');

var data = vdf.parse(someFile); // Returns a JS object representing the input file

console.log(JSON.stringify(data)); // Prints the JSON version of someFile.

CLI

First, install it globally: npm install -g vdfjs

Then, vdfjs path_to_file --out outfile.json

Note

This repo is a work in progress. Expect updated...everything...soon.

Keywords

VDF

FAQs

Package last updated on 26 Sep 2016

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