Socket
Socket
Sign inDemoInstall

partial-json

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partial-json - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

30

package.json
{
"name": "partial-json",
"version": "0.1.2",
"version": "0.1.3",
"description": "Parse partial JSON generated by LLM",

@@ -11,7 +11,13 @@ "keywords": [

],
"homepage": "https://promplate.dev",
"homepage": "https://promplate.dev/partial-json-parser",
"repository": "https://github.com/promplate/partial-json-parser-js",
"license": "MIT",
"author": "Muspi Merol <me@promplate.dev>",
"type": "module",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"main": "./dist/index.cjs",

@@ -23,2 +29,10 @@ "module": "./dist/index.mjs",

],
"scripts": {
"build": "tsc && (npm run build:cjs & npm run build:esm)",
"build:cjs": "esbuild src/index.ts --sourcemap=external --minify --keep-names --bundle --format=cjs --outfile=dist/index.cjs",
"build:esm": "esbuild src/index.ts --sourcemap=external --minify --keep-names --bundle --format=esm --outfile=dist/index.mjs",
"coverage": "vitest run --coverage",
"test": "vitest",
"test:ui": "vitest --ui"
},
"devDependencies": {

@@ -30,11 +44,3 @@ "@vitest/coverage-v8": "^0.34.6",

"vitest": "^0.34.6"
},
"scripts": {
"build": "tsc && (npm run build:cjs & npm run build:esm)",
"build:cjs": "esbuild src/index.ts --sourcemap=external --minify --bundle --format=cjs --outfile=dist/index.cjs",
"build:esm": "esbuild src/index.ts --sourcemap=external --minify --bundle --format=esm --outfile=dist/index.mjs",
"coverage": "vitest run --coverage",
"test": "vitest",
"test:ui": "vitest --ui"
}
}
}

2

README.md

@@ -7,3 +7,3 @@ # Partial JSON Parser

Here comes `partial-json`, a lightweight and customizable library for parsing partial JSON strings.
Here comes `partial-json`, a lightweight and customizable library for parsing partial JSON strings. Here is a [demo](https://promplate.dev/partial-json-parser).

@@ -10,0 +10,0 @@ (Note that there is [a Python implementation](https://github.com/promplate/partial-json-parser) too)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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