add NPM instructions
continuous-integration/drone/push Build is passing Details

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-12-29 15:15:37 +01:00
parent e5f996b2c7
commit 97e798d44b
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 21 additions and 1 deletions

View File

@ -8,7 +8,27 @@ Compatible with Mastodon, Misskey, and Pleroma.
## Usage
Download prebuilt binaries from [here](https://git.froth.zone/sam/js-feditoken/releases/latest) (currently supports x86_64 and arm64 on Linux [glibc or musl], macOS and Windows), or build from source.
Download prebuilt binaries from [here](https://git.froth.zone/sam/js-feditoken/releases/latest) (currently supports x86_64 and arm64 on Linux [glibc or musl], macOS and Windows), download from NPM, or build from source.
### NPM
1. Set up using the [Gitea registry](https://git.froth.zone/sam/fediverse-imagebot/packages)
```sh
npm config set @froth:registry https://git.froth.zone/api/packages/sam/npm/
```
2. After setting up the registry, either run it once
```sh
npx --package=@froth/feditoken feditoken
```
or install globally
```sh
npm i -g @froth/feditoken
```
### Running from Source