A TypeScript API and CLI for the Akamai NetStorage REST interface. Current stable version is 3.1.2, released with ESM-only support. The package provides both programmatic API and a rich CLI with features like bi-directional sync, recursive operations, interactive REPL with tab-completion, built-in retries and rate limiting. It is fully typed and focuses on developer experience with dry-run mode and size aggregation tools. Differentiates itself by being the only maintained TypeScript SDK for Akamai NetStorage with CLI parity.
npm install netstorageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Bi-directional sync between a local directory and a remote Akamai NetStorage path, using dotenv for credentials.
If you use require(), migrate to import or dynamic import(). For Node.js, set "type": "module" in package.json, or use .mjs extension.
Use 'npx netstorage config set' instead of 'npx netstorage auth'.
Update calls to uploadFile(config, {localPath, remotePath, ...}) instead of uploadFile(config, localPath, remotePath).Adjust rate limit settings via createConfig({maxRetries, retryDelay}) or set highWaterMark for streams.Use 'pwd' to see current remote directory. Use absolute paths starting with '/' to avoid context issues.
Install dotenv and call dotenv.config() at entry point, or hardcode credentials (not recommended).
Use import instead: change 'require("netstorage")' to 'await import("netstorage")'. Also ensure your project is ESM or use dynamic import.Use named import: import { createConfig } from 'netstorage'. Do not use import netstorage from 'netstorage'.Ensure all four fields are provided in the config object. Use environment variables as shown in the quickstart.
Verify your key, keyName, host, and cpCode. Use 'npx netstorage config show' to check current configuration.
Check that the local path points to a file, not a directory. Use uploadDirectory for directories.
No dependency data recorded yet.