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

parse-kv-file

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-kv-file

Pare a kv file, return an object.

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

parse-kv-file

Pare a kv file, return an object. Zero dependencies.

install

npm install parse-kv-file

hello parse-kv-file

If we have a file follow follwing format:

foo=xxx
bar=xxx

Then we can parse it to an object.

const parseKvFile = require('parse-kv-file');

const fileStr = `foo=xxx
bar=xxx`

console.log(parseKvFile(fileStr));
// { foo: 'xxx', bar: 'xxx' }

Keywords

parse

FAQs

Package last updated on 03 Nov 2017

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