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.1.0 to 4.0.0-0

8

index.js

@@ -8,3 +8,7 @@ 'use strict'

module.exports = fp => fs.promises.readFile(fp, 'utf8').then(parse)
module.exports.sync = fp => parse(fs.readFileSync(fp, 'utf8'))
module.exports.readIniFile = async function (fp) {
const data = await fs.promises.readFile(fp, 'utf8')
return parse(data)
}
module.exports.readIniFileSync = fp => parse(fs.readFileSync(fp, 'utf8'))
{
"name": "read-ini-file",
"version": "3.1.0",
"version": "4.0.0-0",
"description": "Read and parse an ini file",

@@ -11,6 +11,6 @@ "main": "index.js",

"test-readme": "mos t",
"test": "standard && preview && tape test",
"test": "standard && tape test",
"md": "mos"
},
"repository": "https://github.com/zkochan/packages/tree/master/read-ini-file",
"repository": "https://github.com/zkochan/packages/tree/main/read-ini-file",
"mos": {

@@ -42,5 +42,10 @@ "plugins": [

},
"homepage": "https://github.com/zkochan/packages/tree/master/read-ini-file#readme#readme",
"homepage": "https://github.com/zkochan/packages/tree/main/read-ini-file#readme#readme",
"dependenciesMeta": {
"read-ini-file": {
"injected": true
}
},
"dependencies": {
"ini": "^2.0.0",
"ini": "^3.0.1",
"strip-bom": "^4.0.0"

@@ -51,9 +56,9 @@ },

"mos-plugin-readme": "^1.0.4",
"package-preview": "3.0.0",
"standard": "^16.0.3",
"tape": "^5.1.1"
"read-ini-file": "file:",
"standard": "^16.0.4",
"tape": "^5.3.2"
},
"engines": {
"node": ">=10.13"
"node": ">=14.6"
}
}

@@ -12,3 +12,3 @@ # read-ini-file

```sh
<npm|yarn|pnpm> add read-ini-file
pnpm add read-ini-file
```

@@ -21,3 +21,3 @@

'use strict'
const loadIniFile = require('read-ini-file')
const { readIniFile } = require('read-ini-file')
const path = require('path')

@@ -34,7 +34,7 @@

### `loadIniFile(filepath)`
### `readIniFile(filepath)`
Returns a promise for the parsed ini.
### `loadIniFile.sync(filepath)`
### `readIniFileSync(filepath)`

@@ -41,0 +41,0 @@ Returns the parsed ini.

Sorry, the diff of this file is not supported yet

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