Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A virtual file system for Atom, synchronized with a remote physical file system
This module is used by the Learn IDE, via the Learn IDE Tree package, to mirror a remote filesystem on the client's local machine. This is accomplished by both by maintaining a virtual filesystem that reflects the remote's full tree along with some data about each node (exposed by the included nsync.fs
module), and by copying the remote files to the local disk. All of this is synchronized over a websocket connection, which can be shared by multiple processes via atom-socket.
$ npm install nsync-fs --save
Configure, then wait for the primary node to be set before using the nsync.fs
module:
var nsync = require('nsync-fs');
nsync.configure({
localRoot: '/path/to/local-mirror',
connection: {
url: 'wss://ide.learn.co/file_sync_server'
}
});
nsync.onDidSetPrimary(function(data) {
var fs = nsync.fs;
var stat = fs.statSync('/some/remote/path'); // stat object of remote path
})
Custom commands can be passed from the server to the client, to be handled like this:
nsync.onDidReceiveCustomCommand(function(commandPayload) {
console.log('Custom command received:', commandPayload);
});
For example, the Learn IDE's server watches a file on the remote filesystem, ~/.custom_commands.log
, which can be written to by any process running on the host. It only requires that the write be a line of valid JSON with a command
key:
{"command": "atom_open", "path": "/some/remote/path"}
The server then sends this line to the client, where it is parsed into an object and passed along to the callbacks defined with onDidReceiveCustomCommand
. For more on this, see how custom commands are handled in the Learn IDE Tree.
This project is written in coffescript, use the default gulp
task to start watching ./src/
and transpiling to ./lib/
:
$ git clone https://github.com/learn-co/nsync-fs.git
$ cd nsync-fs
$ npm install
$ npm link
$ gulp
FAQs
A virtual file system for Atom, synchronized with a remote physical file system
The npm package nsync-fs receives a total of 0 weekly downloads. As such, nsync-fs popularity was classified as not popular.
We found that nsync-fs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.