🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more →
Socket
Book a DemoInstallSign in
Socket

@cumulus/files-to-granules

Package Overview
Dependencies
Maintainers
6
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/files-to-granules

Converts array-of-files input into a granules object by extracting granuleId from filename

latest
Source
npmnpm
Version
21.1.0
Version published
Weekly downloads
644
922.22%
Maintainers
6
Weekly downloads
 
Created
Source

@cumulus/files-to-granules

This lambda function converts array-of-files input payloads into granule object output payloads. It is primarily intended to support compatibility with the standard output of a cumulus-process task, and convert that output into a granule object accepted as input by the majority of other Cumulus tasks.

Message configuration

For more information on configuring a Cumulus Message Adapter task, see the Cumulus workflow input/output documentation.

Config

Config object fields:

field nametypedefaultdescription
inputGranulesarray<object>(required)Granules to which the files belong
granuleIdExtractionstring(.*)Regex used to extract granuleId from filenames

Input

Input array specification:

field nametypedefaultdescription
N/Aarray<string>(required)Array of S3 URIs (i.e. s3://bucket/path/to/file);

Output

Output object fields:

field nametypedefaultdescription
granulesarray<object>N/AArray of inputGranules merged with S3 files input

About Cumulus

Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's future Earth science data streams.

Cumulus Documentation

Contributing

To make a contribution, please see our contributing guidelines.

FAQs

Package last updated on 22 Oct 2025

Did you know?

Socket

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.

Install

Related posts