Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
binlf authored Oct 29, 2024
1 parent d3d8ce6 commit f744d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install dsr-kv
While building [lofo](https://www.npmjs.com/package/lofo), as a step during the program's execution, I wanted to write an `object` literal to a file. The obvious solution was to `JSON.stringify()` the object first, then write it to the file but, the result of that approach was this [issue](https://github.com/binlf/lofo/issues/2), where **Next.js** would fail with an error: _`Unexpected object key type`_, when trying to read the "stringified" object. I concluded that the solution was to "deserialize" the object key first, then write to the file. It worked!

At the time, I had a minimal implementation of the idea(that worked), this package is just a "finished" version of that implementation.
> _Of note, is that the there is currently no implementation for deserialization of object `values`(only `keys`) as the use case for that is unclear for now..._
> _Of note is that, there is currently no implementation for deserialization of object `values`(only `keys`) as the use case for that is unclear for now..._
## Usage

Expand Down

0 comments on commit f744d1f

Please sign in to comment.