
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
async-storage-repl
Advanced tools
AsyncStorageRepl provides you to manipurate ReactNative AsyncStorage API on your node REPL.
AsyncStorageRepl provides you to access remote ReactNative application's AsyncStorage from your node REPL.
npm i async-storage-repl -D
import AsyncStorageREPL from 'async-storage-repl';
AsyncStorageREPL().connect();
./node_modules/.bin/async-storage-repl
$ ./node_modules/.bin/async-storage-repl
> RNAsyncStorage.getItem('item1')
null
> RNAsyncStorage.setItem('item1', 'nice value!')
null
> RNAsyncStorage.getItem('item1')
'nice value!'
> RNAsyncStorage.getAllKeys()
[ 'reduxPersist:timeline',
'item1',
'reduxPersist:auth',
'reduxPersist:nav' ]
AsyncStorageREPL provides RNAsyncStorage on your node REPL as a global object. You can access AsyncStorage's all APIs via this object.
AsyncStorageREPL's methods args are guaranteed type-safe by flow-runtime.
> RNAsyncStorage.getItem(1)
RuntimeTypeError: key must be a string
Expected: string
Actual: number
You can save & load RN Application AsyncStorage data.
dump()
provides you getting dump.
load(string[][])
provides you loading dump.
> const data = RNAsyncStorage.dump()
undefined
> data
[ [ 'comments', '["foo","bar","baz"]' ] ]
> fs.writeSync('./dump1.txt', JSON.stringify(data))
> const data = JSON.parse(fs.readSync('./dump1.txt'))
> RNAsyncStorage.load(data)
null
AsyncStorageREPL() accepts an object with a host and port key. Port key must be matched REPL side. You don't need specify a host in case of running on a simulator. but in case of runnning on a real device, specify your computer host.
AsyncStorageREPL({ host: 'localhost', port: 8080 }) // default
.connect();
You can specify portNo --port option.
async-storage-repl --port 8080
FAQs
AsyncStorageRepl provides you to manipurate ReactNative AsyncStorage API on your node REPL.
The npm package async-storage-repl receives a total of 9 weekly downloads. As such, async-storage-repl popularity was classified as not popular.
We found that async-storage-repl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.