Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

read-ini-file

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

read-ini-file - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

7

CHANGELOG.md
# read-ini-file
## 3.1.0
### Minor Changes
- bba9985: graceful-fs and mz removed from dependencies.
## 3.0.1
### Patch Changes

@@ -5,0 +12,0 @@

7

index.js
'use strict'
const fs = require('graceful-fs')
const fs = require('fs')
const stripBom = require('strip-bom')
const ini = require('ini')
const { promisify } = require('util')
const readFile = promisify(fs.readFile)
const parse = (data) => ini.parse(stripBom(data))
module.exports = fp => readFile(fp, 'utf8').then(parse)
module.exports = fp => fs.promises.readFile(fp, 'utf8').then(parse)
module.exports.sync = fp => parse(fs.readFileSync(fp, 'utf8'))
{
"name": "read-ini-file",
"version": "3.0.1",
"version": "3.1.0",
"description": "Read and parse an ini file",

@@ -43,3 +43,2 @@ "main": "index.js",

"dependencies": {
"graceful-fs": "^4.2.4",
"ini": "^2.0.0",

@@ -52,4 +51,4 @@ "strip-bom": "^4.0.0"

"package-preview": "3.0.0",
"standard": "^16.0.1",
"tape": "^5.0.1"
"standard": "^16.0.3",
"tape": "^5.1.1"
},

@@ -56,0 +55,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc