read-ini-file
Advanced tools
Comparing version 3.1.0 to 4.0.0-0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10
3651
4
1
+ Addedini@3.0.1(transitive)
- Removedini@2.0.0(transitive)
Updatedini@^3.0.1