A library for migrating API resources from one endpoint to another. Current version 1.0.4, released in 2018 and not frequently updated. It allows defining source and target URLs with custom headers, and copying specified resource IDs (via array or range). Key differentiator: simple configuration for batch migration with optional transform functions and parallelism control. Uses the `fetch` library under the hood. No TypeScript support.
npm install api-resource-migratorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: create migrator, define source/target, add migration, and run.
Use dynamic import() or convert project to CommonJS.
Pass a higher number to run(), but beware of rate limits.
Wrap run() in try/catch or implement custom retry logic.
Consider alternatives or pin fetch version and audit.
Use const migrator = require('api-resource-migrator')();Run npm install fetch