
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
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)
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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.