Socket
Socket
Sign inDemoInstall

js-properties-to-json

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

dist/index.cjs

19

package.json
{
"name": "js-properties-to-json",
"version": "0.0.2",
"version": "0.0.3",
"description": "Convert a Java properties file to JSON (with JavaScript).",
"types": "./dist/types/index.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"exports": {
"require": "./dist/cjs/index.js",
"import": "./dist/mjs/index.js"
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
}
},
"type":"module",
"files": [

@@ -18,4 +19,4 @@ "dist/"

"serve": "serve ./",
"build": "tsc",
"test": "rm -fr dist/* && tsc -p tsconfig.json && tsc -p tsconfig-cjs.json",
"build": "rollup --config && tsc --emitDeclarationOnly",
"test": "node ./test/test.js && node ./test/test.mjs",
"watch": "onchange \"src/**/*.*\" -v -- npm run buildTest",

@@ -42,5 +43,7 @@ "buildTest": "npm run build && npm run test",

"devDependencies": {
"@rollup/plugin-typescript": "^8.3.3",
"@types/node": "^17.0.23",
"gh-pages": "^3.2.3",
"onchange": "^7.1.0",
"rollup": "^2.77.0",
"serve": "^13.0.2",

@@ -47,0 +50,0 @@ "tslib": "^2.3.1",

@@ -25,3 +25,3 @@ Convert Java `.properties` files to JSON (using JavaScript).

const filePath = path.join(__dirname, 'sample.properties');
const propertiesToJSON = require('properties-to-json').default;;
const propertiesToJSON = require('properties-to-json');;

@@ -28,0 +28,0 @@ fs.readFile(filePath, { encoding: 'utf-8' }, (err, data) => {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc