![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@radiantearth/stac-migrate
Advanced tools
A library to update STAC files to the latest version (1.0.0 at the moment of writing). Supports updating STAC versions 0.6.0 and later.
Version of this library: 1.6.0
Add to your project with npm install @radiantearth/stac-migrate --save
Import the library: const Migrate = require('@radiantearth/stac-migrate');
Migrate.stac(stac: object, updateVersionNumber: boolean = true) => object
Migrate.item
if you have used the Commons extension.Migrate.collection(collection: object, updateVersionNumber: boolean = true) => object
Migrate.catalog(catalog: object, updateVersionNumber: boolean = true) => object
Migrate.item(item: object, collection: object = null, updateVersionNumber: boolean = true) => object
collection
parameter is only required to migrate the Commons extension. Otherwise, you don't need to pass this paramater.Migrate.collectionCollection(apiCollections: object, updateVersionNumber: boolean = true) => object
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)Run the tests: npm test
FAQs
A library to update STAC files to the latest version.
The npm package @radiantearth/stac-migrate receives a total of 1,161 weekly downloads. As such, @radiantearth/stac-migrate popularity was classified as popular.
We found that @radiantearth/stac-migrate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.