3.64.0-alpha.21 • Published 1 month ago

gobot-weed v3.64.0-alpha.21

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Gobot

npm.io npm.io npm.io npm.io

SeaweedFS via npm

This package allows you to use SeaweedFS as an npm dependency.

Part of the Gobot project.

Usage

Quick run

npx gobot weed --version

Quick use

npm i gobot
import { gobot } from 'gobot'
const bot = await gobot(`weed`)
bot.run([`--version`])

Basic version locking

npm i gobot-weed

With gobot-weed present, Gobot will default to the weed version corresponding to the gobot-weed version you installed. Now you can use weed as a real dependency.

import { gobot } from 'gobot'
const bot = await gobot(`weed`)
bot..run([`--version`])

Locking to a specific version

The gobot-weed package version always mirrors the underlying weed version:

npm i gobot-weed@3.64.0

Override the default version imposed by this package

In rare cases, you may want to intentionally run a different version of weed even though gobot-weed is installed.

// Run a specific version (override)
const bot = await gobot(`weed`, { version: `3.64.0` })
bot.run([`--version`])

// Or the latest version (override)
const bot = await gobot(`weed`, { version: `*` })
bot.run([`--version`])

Pass environment variables

import { gobot } from 'gobot'
const bot = await gobot(`weed`, {
  env: process.env, // This is not always necessary, but some apps do need it
})
bot.run([`--version`])

Install globally for CLI access

Exactly one gobot-weed can be installed globally. It will receive a bin alias:

npm i -g gobot-weed
weed --help

# Upgrade to  @latest or any version
npm i -g gobot-weed@latest

CLI

gobot-weed comes with a bin shortcut for CLI usage.

weed [options]

SeaweedFS (https://github.com/seaweedfs/seaweedfs) runner for Gobot (https://github.com/benallfree/gobot)

Options

NameDefaultDiscussion
--g-vtrueShow informational output
--g-vvfalseShow even more output
--g-vvvfalseShow even more output
--g-cache-pathhost specificThe cache path to use
--g-use-version*Run a specific binary version (format: x.y.z semver or x.y.* semver range)
--g-oshost specificSpecify OS/Platform
--g-archhost specificSpecify OS/Platform

API

Full API docs

Quirks

Versioning

SeaweedFS uses two-part versions, but Gobot and npm require three-part semver. A .0 patch part has been added for compatibility.

Sample project

View the SeaweedFS sample project on github.

Try Gobot's other apps

Gobot has a growing list (currently 52) of official apps. Have you tried them all?

Getting Help

Join our Discord community.

Why?

If you are writing a nodejs application that depends upon binaries being present (like PocketHost does), you can add this package as a dependency and execute the binary via CLI or programmatically. This package will make sure your desired external binaries are always available.

If you just want to grab a binary quickly for your own use, npx gobot@latest <app> is quite a bit easier than manually downloading zips and installing binaries in shell paths. Gobot handles it all for you effortlessly.

Adding your app to the Gobot registry

We want to add native support for lots of binary apps!

If you use publish statically linked binary releases on github, you are already 98% compatible with Gobot. In fact, Gobot may already know how to work with it.

To see what initial support looks like:

npx gobot inspect <user>/<repo>

This will index all the releases from your repo and show you exactly what Gobot sees.

If you see everything you expect, you're golden. If things are missing, it may mean some custom programming. Either way, jump on Discord and let us know your results.

If you have the flexibility or are starting a new project, make sure your release names follows these rules:

  • Ends in .zip, .tgz, .tar.gz, .bz2
  • Include the version (semver recommended)
  • Include the platform (freebsd, darwin, linux, win32)
  • Include the architecture (arm64, x64, ia32, arm)

Note: GoReleaser is a great option if you're publish a Go-based project.

Contributing

We could use help testing and making sure this works across lots of platforms.

To test a build locally:

pnpm test

All known releases

gobot-weed versions mirror weed versions. Gobot knows about 244 releases of weed:

Versionfreebsddarwinlinuxwin32
3.64.0arm64/x64/armarm64/x64arm64/x64/armx64
3.63.0arm64/x64/armarm64/x64arm64/x64/armx64
3.62.0arm64/x64/armarm64/x64arm64/x64/armx64
3.61.0arm64/x64/armarm64/x64arm64/x64/armx64
3.60.0arm64/x64/armarm64/x64arm64/x64/armx64
3.59.0arm64/x64/armarm64/x64arm64/x64/armx64
3.58.0arm64/x64/armarm64/x64arm64/x64/armx64
3.57.0arm64/x64/armarm64/x64arm64/x64/armx64
3.56.0arm64/x64/armarm64/x64arm64/x64/armx64
3.55.0arm64/x64/armarm64/x64arm64/x64/armx64
3.54.0arm64/x64/armarm64/x64arm64/x64/armx64
3.53.0arm64/x64/armarm64/x64arm64/x64/armx64
3.52.0arm64/x64/armarm64/x64arm64/x64/armx64
3.51.0arm64/x64/armarm64/x64arm64/x64/armx64
3.50.0arm64/x64/armarm64/x64arm64/x64/arm
3.48.0arm64/x64/armarm64/x64arm64/x64/arm
3.47.0arm64/x64/armarm64/x64arm64/x64/arm
3.46.0arm64/x64/armx64arm64/x64/arm
3.45.0arm64/x64/armarm64/x64arm64/x64/arm
3.44.0arm64/x64/armarm64/x64arm64/x64/arm
3.43.0arm64/x64/armarm64/x64arm64/x64/arm
3.42.0arm64/x64/armarm64/x64arm64/x64/arm
3.41.0arm64/x64/armarm64/x64arm64/x64/arm
3.40.0arm64/x64/armarm64/x64arm64/x64/arm
3.39.0arm64/x64/armarm64/x64arm64/x64/arm
3.38.0arm64/x64/armarm64/x64arm64/x64/arm
3.37.0arm64/x64/armarm64/x64arm64/x64/arm
3.36.0arm64/x64/armarm64/x64arm64/x64/arm
3.35.0arm64/x64/armarm64/x64arm64/x64/arm
3.34.0arm64/x64/armarm64/x64arm64/x64/arm
3.33.0arm64/x64/armarm64/x64arm64/x64/arm
3.32.0arm64/x64/armarm64/x64arm64/x64/arm
3.31.0arm64/x64/armarm64/x64arm64/x64/arm
3.30.0arm64/x64/armarm64/x64arm64/x64/arm
3.29.0arm64/x64/armarm64/x64arm64/x64/arm
3.28.0arm64/x64/armarm64/x64arm64/x64/arm
3.27.0arm64/x64/armarm64/x64/armx64
3.26.0arm64/x64/armarm64/x64/armx64
3.25.0arm64/x64/armarm64/x64/armx64
3.24.0arm64/x64/armarm64/x64/armx64
3.23.0arm64/x64/armarm64/x64/armx64
3.22.0arm64/x64/armarm64/x64/armx64
3.20.0arm64/x64/armarm64/x64/armx64
3.19.0arm64/x64/armarm64/x64/armx64
3.18.0arm64/x64/armarm64/x64/armx64
3.16.0arm64/x64/armarm64/x64/armx64
3.15.0arm64/x64/armarm64/x64/armx64
3.14.0arm64/x64/armarm64/x64/armx64
3.13.0x64arm64/x64/armx64
3.12.0arm64/x64/armarm64/x64/armx64
3.11.0arm64/x64/armarm64/x64/armx64
3.10.0arm64/x64/armarm64/x64/armx64
3.9.0arm64/x64/armarm64/x64/armx64
3.8.0arm64/x64/armarm64/x64/armx64
3.6.0arm64/armarm64/x64/armx64
3.4.0arm64/x64/armarm64/x64/armx64
3.2.0arm64/x64/armarm64/x64/armx64
3.1.0arm64/x64/armarm64/x64/armx64
3.0.0
2.99.0
2.98.0
2.97.0
2.96.0
2.95.0
2.94.0
2.93.0
2.92.0
2.91.0
2.90.0
2.89.0
2.88.0
2.87.0
2.86.0
2.85.0
2.84.0
2.83.0
2.82.0
2.81.0
2.80.0
2.79.0
2.78.0
2.77.0arm64/x64/armarm64/x64arm64/x64/armx64
2.76.0arm64/x64/armarm64/x64arm64/x64/armx64
2.75.0arm64/x64/armarm64/x64arm64/x64/armx64
2.74.0arm64/x64/armarm64/x64arm64/x64/armx64
2.72.0
2.71.0
2.70.0
2.69.0
2.68.0
2.67.0
2.66.0
2.65.0
2.64.0
2.63.0
2.62.0
2.61.0
2.60.0
2.59.0
2.58.0
2.57.0
2.56.0
2.55.0
2.54.0
2.53.0
2.52.0
2.50.0
2.49.0
2.48.0
2.47.0
2.43.0
2.41.0
2.40.0
2.39.0
2.38.0
2.37.0
2.36.0
2.35.0
2.34.0
2.32.0
2.31.0
2.30.0
2.29.0
2.28.0
2.27.0
2.26.0
2.24.0
2.23.0
2.22.0
2.21.0
2.20.0
2.19.0
2.18.0
2.17.0
2.16.0
2.15.0
2.14.0
2.13.0
2.12.0
2.11.0
2.10.0
2.9.0
2.8.0
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.99.0
1.98.0
1.97.0
1.96.0
1.95.0
1.94.0
1.93.0
1.92.0
1.91.0
1.90.0
1.88.0
1.87.0
1.86.0
1.85.0
1.84.0
1.83.0
1.82.0
1.81.0
1.80.0
1.79.0
1.78.0
1.77.0
1.76.0
1.75.0
1.74.0
1.73.0
1.72.0
1.71.0
1.70.0
1.69.0
1.67.0
1.65.0
1.64.0
1.63.0
1.61.0
1.60.0
1.59.0
1.58.0
1.57.0
1.56.0
1.55.0
1.54.0
1.53.0
1.52.0
1.51.0
1.50.0
1.49.0
1.48.0
1.47.0x64/ia32/armx64arm64/x64/ia32/armx64/ia32
1.46.0
1.45.0
1.44.0
1.43.0
1.42.0
1.41.0
1.40.0
1.38.0
1.37.0
1.35.0
1.34.0
1.33.0
1.32.0
1.31.0
1.30.0
1.29.0
1.28.0
1.27.0
1.26.0
1.25.0
1.24.0
1.23.0
1.18.0
1.16.0
1.15.0
1.14.0
1.11.0
1.10.0
1.9.0
1.0.0
0.99.0
0.98.0
0.97.0
0.96.0
0.95.0
0.94.0
0.93.0
0.92.0
0.91.0
0.90.0
0.77.0x64/ia32/armx64arm64/x64/ia32/armx64/ia32
0.76.0x64/ia32/armx64arm64/x64/ia32/armx64/ia32
0.69.0x64/ia32/armx64x64/ia32/armx64/ia32
0.0.0arm64/x64x64x64
3.64.0-alpha.21

1 month ago

3.64.0-alpha.20

1 month ago

3.64.0-alpha.19

2 months ago

3.64.0-alpha.18

2 months ago

3.64.0-alpha.17

2 months ago

3.64.0-alpha.16

2 months ago

3.64.0-alpha.15

2 months ago

3.64.0-alpha.14

2 months ago