
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@sugarcube/plugin-fs
Advanced tools
@sugarcube/plugin-fsInteract with the file system.
npm install --save @sugarcube/plugin-fs
fs_importThe query type is glob_pattern. It expands the glob pattern and turns every file into an unit. If possible, it extracts the body and meta data from the file using Apache Tika.
Example:
sugarcube -Q glob_pattern:path/to/files/** -p fs_import
Configuration:
fs.extract_language: Set the language to use for OCR extraction. The language code must be a ISO 839-2 3 letter code and supported by Tesseract. Make sure to install the language pack for Tesseract as well. Example languages are: eng for English, deu for German and ara for Arabic. The default language is eng.Metrics:
total: The total number of files imported.fail: The number of files that failed to import.success: The number files that succeeded to import.fs_from_jsonThe query type is glob_pattern. It expands the glob pattern and import each file as a JSON file. The contents of the JSON files are imported as units of data.
Example:
sugarcube -Q glob_pattern:path/to/files/*.json -p fs_from_json
Configuration:
This plugin offers no configuration.
Metrics:
total: The total number of units imported.fail: The number of files that failed to import.success: The number of units that succeeded to import.unfoldUnfold a glob pattern into a list of file objects.
unfold :: String -> Future [a]
Parameters
pattern string A glob file pattern.Returns Promise<Array<Object>> A list of file objects. Contains location, sha256 and md5 sums.
FAQs
Operate on the file system.
We found that @sugarcube/plugin-fs 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers