@@ -200,35 +200,11 @@ alternative
200
200
201
201
## NDJSON
202
202
203
- New line delimitated JSON ([ NDJSON] ( https://github.com/ndjson/ndjson-spec ) ) is a
204
- standard for supporting JSON string encoding of data where each record of data
205
- is delimitated by a new line. This particular format is the most straight-
206
- forward way of supporting JSON encoding and streaming.
207
-
208
- The toolbox includes the capabilities to export entries from a KV store to
209
- NDJSON, transform a byte stream of NDJSON into individual JSON KV entry
210
- representations, and be able to import KV entries from NDJSON encoded data.
211
-
212
- ### ` exportEntries() `
213
-
214
- Like ` Deno.Kv.prototype.list() ` , but entries are returned as a stream of bytes
215
- or strings encoded as NDJSON.
216
-
217
- ### ` exportToResponse() `
218
-
219
- Like ` Deno.Kv.prototype.list() ` , but a ` Response ` is returned with the selected
220
- entries encoded as NDJSON as the body of the response, suitable for sending to a
221
- client as a response to a query.
222
-
223
- ### ` LineTransformStream() `
224
-
225
- A transform stream which takes a byte stream, like from a ` Request ` body, of
226
- NDJSON encoded entry data and transforms it into individual chunks of JSON
227
- strings which can be used with ` JSON.parse() ` .
228
-
229
- ### ` importEntries() `
230
-
231
- Takes NDJSON encoded data and imports it into a Deno KV store.
203
+ > [ !IMPORTANT]
204
+ > The ability to import and export NDJSON has been contributed to
205
+ > [ @deno/kv-utils ] ( https://jsr.io/@deno/kv-utils/ ) and will be maintained there.
206
+ > The toolbox includes this capability, but this package does not contain the
207
+ > utilities anymore.
232
208
233
209
## Keys
234
210
0 commit comments