
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
node-resolve-flow
Advanced tools
Isomorphic node resolve algorithm for any file system (in-browser or Node)
Isomorphic node resolve algorithm for any file system (in-browser or Node)
This module abstracts the node module resolution algorithm (loosely following the spec at https://nodejs.org/api/esm.html#esm_resolver_algorithm_specification, correcting its "imprecisions") as a flow (a generator function) given an abstract file system interface
Usage:
import resolver from 'node-resolve-flow';
const resolve = resolver({ isFile, loadPkgJSON });
resolve will be a flow (a generator function) which takes 2 parameters: importee and importer and returning the file URL of the resolved module if successful, and throws or returns undefined if unsuccessful, where
isFile(fileURL): a user-supplied flow that should return true if object represented by fileURL exists and is a fileloadPkgJSON(fileURL): a user-supplied flow that should load the package.json file located at fileURLNote: since the resolver is working with generators you would need a generator runner i.e ConclureJS or Redux Saga to make use of it.
FAQs
Isomorphic node resolve algorithm for any file system (in-browser or Node)
The npm package node-resolve-flow receives a total of 3 weekly downloads. As such, node-resolve-flow popularity was classified as not popular.
We found that node-resolve-flow 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.