{
"repo": "drives",
"timestamp": "2026-01-16T23:39:44.097Z",
"entryPoint": "index.js",
"exports": {
"packageJson": {
"main": "index.js"
}
},
"api": {},
"readme": {
"content": "# drives\n\nCLI to seed, mirror, and serve a Hyperdrive or Localdrive\n\n```\nnpm i -g drives\n```\n\n## Usage\n```bash\nUsage: drives [command] [options]\n\nCommands:\n init Initializes a new storage on the cwd\n touch Create a writable Hyperdrive\n mirror <src> <dst> Mirror a drive into another drive\n ls <src> [path] List files of the drive\n seed [key] Share a Hyperdrive\n download <key> Archive download a Hyperdrive by key\n serve <src> Creates a HTTP drive server\n put <src> <path> <blob> Create a file\n entry <src> <path> Show a single entry file\n get <src> <path> Show the file content\n rm <src> <path> Delete a file\n info <key> Show info about the Hyperdrive\n purge <key> Delete all local storage of the drive\n```\n\n## API\nUse `drives --help` for more information, `drives mirror --help`, etc.\n\n#### Storage\n\nBy default, it tries to use `.drives` from ",
"sections": [
"intro",
"usage",
"api",
"license"
],
"hasApi": true,
"hasExamples": true,
"exampleCount": 9,
"examples": [
"npm i -g drives",
"## API\nUse `drives --help` for more information, `drives mirror --help`, etc.\n\n#### Storage\n\nBy default, it tries to use `.drives` from the current directory.\n\nIf it doesn't exists then it will go back `../` until it finds an existing `.drives`.\n\nIf it doesn't find anything, then it will create and use a global folder at `~/.drives`.\n\nYou can always set `--storage [path]` to force a different location.\n\n#### Initialize\nIt creates the `.drives` storage folder in the current working directory.",
"Useful to avoid doing a parent lookup, and not using the home folder.\n\n#### Create a writable Hyperdrive"
]
},
"patterns": [
"peer-discovery"
]
}