New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aleclarson/json-stream

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

@aleclarson/json-stream

Streaming JSON parser in Javascript for Node.js, Deno and the browser

  • 0.1.22
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

@aleclarson/json-stream

Fork of @streamparser/json-whatwg

The purpose of this fork is to avoid module resolution issues that prevented certain types from working in TypeScript.

Changelog

0.1.21

  • Added the ObjectParser class, which is similar to JSONParser except it emits root-level objects/arrays that are line-delimited by default. Those objects/arrays are statically typed, but not validated at runtime.

    for await (const object of stream.pipeThrough(
      new ObjectParser<MyObject | MyArray>()
    )) {
      // object is either MyObject or MyArray
    }
    

0.1.20

  • Compiled to ESM only.
  • Removed the exports field.
  • The @streamparser-json package is bundled.
  • Removed any exports not accessible from a JSONParser instance.
  • Replaced all type namespaces with direct type exports.
  • Source code is excluded from NPM artifact.

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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