npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rclone-config-builder

v1.0.0

Published

Config builder in JSON/YAML? for Rclone

Downloads

3

Readme

rclone-config-builder

Config builder in YAML for Rclone

Installation

npm i -g rclone-config-builder

Usage

rclone-config-builder convert source.yml [rclone.conf]

The path to rclone.conf may be omitted. If omitted, it'll default to the rclone's config path.

Contents for YAML files

Basics

Each root key corresponds to a backend. Use the same key-value for parameters. Obscure passwords as needed.

remote:
  type: ftp
  host: example.com
  user: testaccount1
  pass: hZFA05qRteCkJTg2hS-qdkbG_RUbbOiz42kFT1qeCA

Wrapping backends

For some backends that wraps other remotes, you can define "inline remotes", to define a remote on-demand, like this:

crypt-remote:
  type: crypt
  remote:
    type: ftp
    host: example.com
    user: testaccount1
    pass: hZFA05qRteCkJTg2hS-qdkbG_RUbbOiz42kFT1qeCA
  password: e_YG9UDs5bYhWYILrgAXNjeVbW3j2oYS1z-gV_jL6w
  password2: L7yCBJUzQLGU-b_Pni6uHJ18eK-9yAowCrTFbgIuDwvXj3iE

This example defines a crypt remote, wrapping an inline ftp remote. Note that you don't have to define the name for inline remotes. They're automatically created as needed. It can also point to an another defined remote using string, like:

crypt-remote:
  type: crypt
  remote: "myftpserver:"
  password: e_YG9UDs5bYhWYILrgAXNjeVbW3j2oYS1z-gV_jL6w
  password2: L7yCBJUzQLGU-b_Pni6uHJ18eK-9yAowCrTFbgIuDwvXj3iE

Don't forget to surround with double quotes, to prevent it from becoming a mapping.

For backends accepting multiple remotes (e.g. union), multiple remotes can be specified by array. Strings and inline remotes can be mixed in an array. Like rclone.conf, you can also use the string, separated by spaces.

union-remote1:
  upstreams:
    # Tip: Always quote by double quotes to prevent it from becoming mapping
    - "ftp1:"
    - "sftp2:"


union-remote2:
  upstreams:
    # Inline remotes are also accepted
    - "ftp1:"
    - type: crypt
      remote: "sftp2:"
      password: e_YG9UDs5bYhWYILrgAXNjeVbW3j2oYS1z-gV_jL6w
      password2: L7yCBJUzQLGU-b_Pni6uHJ18eK-9yAowCrTFbgIuDwvXj3iE


union-remote3:
  # String can be used too
  upstreams: "ftp1: sftp2:"

Subdirectory for inline remotes

To specify subdirectories in inline remotes (i.e. point to children directory in remote), use @path key. It also accepts the path starting with slashes.

crypt-remote:
  type: crypt
  remote:
    # This remote is referenced by a string like "remote:hello/world/subdir/"
    type: ftp
    host: example.com
    user: testaccount1
    pass: hZFA05qRteCkJTg2hS-qdkbG_RUbbOiz42kFT1qeCA
    "@type": "hello/world/subdir/"
  password: e_YG9UDs5bYhWYILrgAXNjeVbW3j2oYS1z-gV_jL6w
  password2: L7yCBJUzQLGU-b_Pni6uHJ18eK-9yAowCrTFbgIuDwvXj3iE

Combine

For combine backend, each remotes are specified as a mapping:

combine-remote:
  upstreams:
    testdir: "samba:"
    mydrive:
      type: drive
      client_id: apps.googleusercontent.com
      client_secret: UOehroMHJohWDriV11mcXHaZE8BOQQ
      scope: drive
      token: "{}"

This example defines a defined remote "samba:" to be in testdir/ directory, and an inline remote to Google Drive to be in mydrive/.