Get the App
SLTechnology News&Howtos  ›  Development  › 

Example Analysis of localStorage physical Storage in nw.js

Shulou Source: shulou.com Published: 2022-06-03 12:38:19 11月15日 Update

This article will explain in detail the example analysis of localStorage physical storage in nw.js. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Storage location

The localStorage storage directory of the application packaged by nw.js is as follows:

* * C:\ Users\ [user name]\ AppData\ Local\ [nw Application name]\ User Data\ Default\ Local Storage\ chrome-extension_ [random characters] _ 0.localstoragecharacters *

For example, the location on my computer is:

C:\ Users\ xxcanghai\ AppData\ Local\ waimai_e_client_nw\ User Data\ Default\ Local Storage\ chrome-extension_blodpelipeilefodephhjbnidgkbghmj_0.localstorage

Open mode

This localStorage file is binary and cannot be opened directly with a text editor, but can be accessed through the binary file viewer.

For example, I set a value of localStorage in the nw application: xxcanghai 123

Cymbal

Then open the chrome-extension_blodpelipeilefodephhjbnidgkbghmj_0.localstorage file with a hexadecimal editor WinHex, and you can view the stored xxcanghai and 123 inside.

Attach the storage location of other browsers, localStorage, Firefox

Firefox stores the localstorage file: webappsstore.sqlite in the configuration files folder

Firefox (Windows XP):

C:\ Documents and Settings\\ Application Data\ Mozilla\ Firefox\ Profiles\

This is the end of this article on "sample analysis of localStorage physical storage in nw.js". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Files locations browsers articles applications browsing physics examples analysis binary more Firefox editor good practical content hexadecimal can be passed name character Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Docker Shulou Technology vpn Microsoft