Загрузка страницы

Read/Write JSON Files with Node.js

See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/readwrite-json-files-nodejs

When you want to store data between server restarts with Node, JSON files are a simple and convenient choice. Whether you are reading a config file or persisting data for your application, Node has some built-in utilities that make it easy to read and write JSON files. Using JSON files in your app can be a useful way to persist data. We will look at a few different methods for working with JSON files.

In this tutorial we'll:
- Read JSON data from disk
- Learn to use fs module to interact with the filesystem
- Persist data to a JSON file
- Use JSON.parse and JSON.stringify to convert data to and from JSON format

Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.

Видео Read/Write JSON Files with Node.js канала Hey Node
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
16 января 2020 г. 5:21:46
00:10:27
Яндекс.Метрика