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

unexpected-cli-sandbox

v1.0.101

Published

## Configuration

Downloads

27

Readme

unexpected-cli-sandbox

Configuration

Create a file unexpected.json with the following structure:

{
    "workerId": "fb0eb483-c7ac-4795-a13a-af76c62db462",
    "name": "53e535f4-a",
    "projectId": "6e94a318-fc68-4e91-a5b0-f92d20640442",
    "buildDirectory": ".build",
    "env": {
        "foo": "bar",
        "number": 300
    }
}

Note: This configuration file is optional. If the configuration file does not exist, it will be created automatically.

  • workerId: Required. Unique identifier for the worker.
  • name: Optional. Name for the worker, limited to 10 characters.
  • buildDirectory: Optional. Default is .build.
  • env: Optional. Environment variables, either strings or numbers. If you want to bind environment variables during deployment, add them to the config.

Commands

login

Log into the system:

unexpected-cli-sandbox login

logout

Log out of the system:

unexpected-cli-sandbox logout

build

Build the project based on the current configuration. If a path to a folder containing the function is specified, it will build from that folder. If no path is specified, it will build from the default folder functions.

# Build with a specified path to the function folder
unexpected-cli-sandbox build --path /path/to/your/function

# Build from the default folder
unexpected-cli-sandbox build

Options:

  • --path, -p: Path to the folder containing the function to deploy. If not specified, the default folder functions is used.

deploy

Deploy the built project to the specified environment. If a path to a folder containing the function is specified, it will deploy from that folder. If no path is specified, it will deploy from the default folder functions.

# Deploy with a specified path to the function folder
unexpected-cli-sandbox deploy --path /path/to/your/function

# Deploy from the default folder
unexpected-cli-sandbox deploy

Options:

  • --path, -p: Path to the folder containing the function to deploy. If not specified, the default folder functions is used.

deploy-live-query

Deploy the live query to the specified environment.

unexpected-cli-sandbox deploy-live-query

set-trigger

Set the trigger for a specified table.

unexpected-cli-sandbox set-trigger --table table_name

Options:

  • --table, -t: Name of the table to deploy the live query to. This option is required.

delete-trigger

Delete the trigger for a specified table.

unexpected-cli-sandbox delete-trigger --table table_name

Options:

  • --table, -t: Name of the table to delete the trigger from. This option is required.

delete-live-query

Delete the deployed live query.

unexpected-cli-sandbox delete-live-query

hello

Receive greetings from the CLI!

unexpected-cli-sandbox hello

tail

Tail the logs of the deployed project in real-time.

unexpected-cli-sandbox tail

delete

Delete a worker in the project.

unexpected-cli-sandbox delete

Help

To get a list of all available commands and their descriptions:

unexpected-cli-sandbox --help

If no path is specified for commands that require a path, the default folder functions will be used.