DEV Community

ezzabuzaid
ezzabuzaid

Posted on

3

Object To Collection

Map a plain javascript object to a simple collection with curd functionality

Recently, I was working in a project which requires giving the users an ability to manage an application by having custom settings, after that, another requirement landed up which tells that the client needs to log users movements and show them later on, this was a little fuzzy when it comes to deal with duplication and other stuff since what I have just a plain javascript object that will be sent to backend after while and more cases I faced while I was working on it.

after a bit of writing the logic, it grows to be not good to included directly in the project for reasons!

so It's ended up to published on NPM, perhaps it will help anyone.
DocumentStorage, the name looks weird a bit, but I didn't find a good one.

You can find the documentation in the link

also, you can find my other personal project here

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay