# Content Snapshots

Save profile and article edits as one versioned snapshot.

## Project overview

Write the new data to a temporary file before replacing the content file. Compare revisions when two editors submit overlapping changes.

## Goal

Save profile and article edits as one versioned snapshot.

## Implementation

Write the new data to a temporary file before replacing the content file. Compare revisions when two editors submit overlapping changes.

## Try it

Open two admin windows. Save from the first, then try to save the stale draft from the second.

## Tech stack

- Node.js
- JSON
- File System

## Project facts

- **Type** — Sample project
- **Technology** — Node.js

- [Read the reference](<https://nodejs.org/api/fs.html>)
