Socket
Socket
Sign inDemoInstall

read-json5-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

read-json5-file - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

CHANGELOG.md

6

index.js
'use strict'
const path = require('path')
const fs = require('graceful-fs')
const fs = require('fs')
const stripBom = require('strip-bom')
const JSON5 = require('json5')
const { promisify } = require('util')
const readFile = promisify(fs.readFile)

@@ -12,3 +10,3 @@ const parse = (data, fp) => JSON5.parse(stripBom(data), path.relative('.', fp))

module.exports = async fp => {
const data = await readFile(fp, 'utf8')
const data = await fs.promises.readFile(fp, 'utf8')
return parse(data, fp)

@@ -15,0 +13,0 @@ }

{
"name": "read-json5-file",
"version": "0.0.0",
"version": "1.0.0",
"description": "Read and parse a JSON5 file",
"main": "index.js",
"engines": {
"node": ">=8.15"
"node": ">=10"
},

@@ -43,12 +43,11 @@ "files": [

"dependencies": {
"graceful-fs": "^4.1.15",
"json5": "^2.1.0",
"json5": "^2.2.0",
"strip-bom": "^4.0.0"
},
"devDependencies": {
"mos": "^2.0.0-alpha.3",
"mos": "2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"standard": "^12.0.1",
"tape": "^4.10.1"
"standard": "^16.0.3",
"tape": "^5.1.1"
}
}

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