Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Use the fs/promises node API to Serialize a Map to the Filesystem


    We create a class called MapStore that serializes the JavaScript Map object to JSON and stores that on the filesystem using node 14's fs/promises API.

    In future lessons we'll use this class to persist our in-memory notes.

    View the source for MapStore.js on the projects github repo.