7777 <pre
7878 class =" text-white overflow-x-auto font-mono text-sm leading-relaxed"
7979 >
80- <span class =" text-accent" >import</span > { jsonReader } <span class =" text-accent" >from</span > <span class =" text-white" >'jsonreader'</span >;
80+ <span class =" text-accent" >import</span > { jsonReader } <span class =" text-accent" >from</span > <span class =" text-white" >'@formkit/ jsonreader'</span >;
8181
8282<span class =" text-gray-400" >// Get a reader from a streaming response</span >
8383<span class =" text-accent" >const</span > reader = response.body.getReader();
345345 </h4 >
346346 </div >
347347 <p class =" text-gray-600 mb-8 flex-grow" >
348- Use jsonreader in your personal projects, open source
348+ Use @formkit/ jsonreader in your personal projects, open source
349349 contributions, and learning experiences at no cost.
350350 </p >
351351 <div class =" flex items-end justify-between mt-auto" >
446446 class =" text-white overflow-x-auto font-mono text-sm leading-relaxed text-left"
447447 >
448448<span class =" text-gray-400" ># Using npm</span >
449- npm install jsonreader
449+ npm install @formkit/ jsonreader
450450
451451<span class =" text-gray-400" ># Using yarn</span >
452- yarn add jsonreader
452+ yarn add @formkit/ jsonreader
453453
454454<span class =" text-gray-400" ># Using pnpm</span >
455- pnpm add jsonreader</pre >
455+ pnpm add @formkit/ jsonreader</pre >
456456 </div >
457457 </div >
458458
@@ -468,7 +468,7 @@ pnpm add jsonreader</pre>
468468 <div class =" navigation-card fade-in-delayed mb-16" >
469469 <div class =" card-content" >
470470 <p class =" text-black mb-6" >
471- The <code class =" inline-code" >jsonreader</code > utility parses
471+ The <code class =" inline-code" >@formkit/ jsonreader</code > utility parses
472472 JSON data character by character as it arrives from a stream. It
473473 builds up a syntactically valid JSON structure as data comes in,
474474 closing any unclosed objects or arrays to create valid partial
@@ -541,7 +541,7 @@ pnpm add jsonreader</pre>
541541 </h3 >
542542
543543 <p class =" doc-text mb-6" >
544- The simplest way to use jsonreader is to process JSON data as it
544+ The simplest way to use @formkit/ jsonreader is to process JSON data as it
545545 streams in:
546546 </p >
547547
@@ -558,7 +558,7 @@ pnpm add jsonreader</pre>
558558 <pre
559559 class =" text-white overflow-x-auto font-mono text-sm leading-relaxed text-left"
560560 >
561- <span class =" text-accent" >import</span > { jsonReader } <span class =" text-accent" >from</span > <span class =" text-white" >'jsonreader'</span >;
561+ <span class =" text-accent" >import</span > { jsonReader } <span class =" text-accent" >from</span > <span class =" text-white" >'@formkit/ jsonreader'</span >;
562562
563563<span class =" text-accent" >async</span > <span class =" text-accent" >function</span > <span class =" text-white" >processStreamingData</span >() {
564564 <span class =" text-gray-400" >// Get a stream from somewhere (e.g., fetch API)</span >
@@ -595,7 +595,7 @@ pnpm add jsonreader</pre>
595595 class =" bg-gray-50 p-6 mb-8 rounded-lg border border-gray-200 card-noise"
596596 >
597597 <p class =" text-black mb-6" >
598- jsonreader provides three powerful configuration options to control
598+ @formkit/ jsonreader provides three powerful configuration options to control
599599 how streaming data is processed:
600600 </p >
601601
@@ -651,7 +651,7 @@ pnpm add jsonreader</pre>
651651 <pre
652652 class =" text-white overflow-x-auto font-mono text-sm leading-relaxed text-left"
653653 >
654- <span class =" text-accent" >import</span > { jsonReader } <span class =" text-accent" >from</span > <span class =" text-white" >'jsonreader'</span >;
654+ <span class =" text-accent" >import</span > { jsonReader } <span class =" text-accent" >from</span > <span class =" text-white" >'@formkit/ jsonreader'</span >;
655655
656656<span class =" text-accent" >for</span > <span class =" text-accent" >await</span > (<span class =" text-accent" >const</span > data <span class =" text-accent" >of</span > jsonReader(reader, {
657657 <span class =" text-gray-400" >// Won't yield anything until 'metadata' is complete</span >
@@ -703,7 +703,7 @@ pnpm add jsonreader</pre>
703703 <pre
704704 class =" text-white overflow-x-auto font-mono text-sm leading-relaxed text-left"
705705 >
706- <span class =" text-accent" >import</span > { jsonPathReader } <span class =" text-accent" >from</span > <span class =" text-white" >'jsonreader'</span >;
706+ <span class =" text-accent" >import</span > { jsonPathReader } <span class =" text-accent" >from</span > <span class =" text-white" >'@formkit/ jsonreader'</span >;
707707
708708<span class =" text-accent" >for</span > <span class =" text-accent" >await</span > (<span class =" text-accent" >const</span > [value, path] <span class =" text-accent" >of</span > jsonPathReader(reader, [
709709 <span class =" text-white" >'results'</span >,
0 commit comments