Gathering detailed insights and metrics for @radiantearth/stac-migrate
Gathering detailed insights and metrics for @radiantearth/stac-migrate
Gathering detailed insights and metrics for @radiantearth/stac-migrate
Gathering detailed insights and metrics for @radiantearth/stac-migrate
A tool to migrate Items, Catalogs and Collections from old versions to the most recent one.
npm install @radiantearth/stac-migrate
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
97,275
Last Day
41
Last Week
741
Last Month
4,634
Last Year
64,357
Apache-2.0 License
6 Stars
55 Commits
2 Watchers
1 Branches
10 Contributors
Updated on Apr 03, 2025
Minified
Minified + Gzipped
Latest Version
2.0.2
Package Id
@radiantearth/stac-migrate@2.0.2
Unpacked Size
51.55 kB
Size
13.76 kB
File Count
5
NPM Version
11.1.0
Node Version
22.12.0
Published on
Apr 03, 2025
Cumulative downloads
Total Downloads
Last Day
-55.9%
41
Compared to previous day
Last Week
-35%
741
Compared to previous week
Last Month
17.8%
4,634
Compared to previous month
Last Year
195.3%
64,357
Compared to previous year
3
2
A library to update STAC files to the latest version (1.1.0 at the moment of writing). Supports updating STAC versions 0.6.0 and later.
Version of this library: 2.0.2
Add to your project with npm install @radiantearth/stac-migrate --save
Import the library: const Migrate = require('@radiantearth/stac-migrate');
Migrate (auto-detection): Migrate.stac(stac: object, updateVersionNumber: boolean = true) => object
This method does not migrate the Commons extension - use Migrate.item
if you have used the Commons extension.
Migrate a STAC Collection: Migrate.collection(collection: object, updateVersionNumber: boolean = true) => object
Migrate a STAC Catalog: Migrate.catalog(catalog: object, updateVersionNumber: boolean = true) => object
Migrate a STAC Item: Migrate.item(item: object, collection: object = null, updateVersionNumber: boolean = true) => object
The collection
parameter is only required to migrate the Commons extension. Otherwise, you don't need to pass this paramater.
Migrate a STAC CollectionCollection: Migrate.collectionCollection(apiCollections: object, updateVersionNumber: boolean = true) => object
Migrate a STAC ItemCollection: Migrate.itemCollection(apiItems: object, updateVersionNumber: boolean = true) => object
Note: All changes will be applied in-place! If you don't want the input object to change, make a deep clone before. If you don't have a library which supports this (e.g. lodash) you can simply use var clone = JSON.parse(JSON.stringify(object));
.
You can also use the CLI to migrate a single file. The commands follow the different methods above and has the same "restrictions" as above.
npx stac-migrate <source_path>
npx stac-migrate <source_path> --dest <dest_path> --indent 4
npx stac-migrate <source_path> <dest_path> --collection
npx stac-migrate <source_path> <dest_path> --catalog
npx stac-migrate <source_path> <dest_path> --item --collection_path <collection_path>
npx stac-migrate <source_path> <dest_path> --item_collection
npx stac-migrate <source_path> <dest_path> --collecions
Migrate.enableMultihash(require('multihashes'))
to enable conversion from pre-0.9 checksums - disabled by default to keep the bundle size low)nodata
)Run the tests: npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More