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

bitburner-sync

v1.5.3

Published

A tool used to upload your code to the game Bitburner

Downloads

21

Readme

Bitburner Sync

This package allows code to be synced to the game from any environment. It's inspired by the VSCode extension but allows for greater freedom since it's not tied to a specific IDE. The only requirement is Node.js®.

NB: You must play the game via the Electron client (aka the Steam version) to be able to sync code.

Install

Install in your project via npm install bitburner-sync.

It can also be installed as a global tool via npm install bitburner-sync -g.

For more help around installation then look here.

Usage

Can be used from the terminal, then always prefix the calls with npx. Use npx bitburner-sync --help for full information.

Options

The following are command line options.

Commands

| Option | Description | |------------|--------------------------------------------------------| | <default> | Do a single push from scriptRoot to bitburner. | | get | Retrieve files from bitburner and store at scriptRoot. | | watch | Continuously monitor the scriptRoot for changes. | | help | Displays the full help. |

Parameters

| Option | Description | |-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | authToken | The only required option, it can also be read from package.json. See the installation instruction above or the VSCode extension for information about how to retrieve it. | | scriptRoot | The folder that you want to sync. Defaults to the current folder. The directory node_modules is ignored but any other valid game files are synced. It's highly recommended to do a dryRun first to list all the files that would be synced. | | serverUrl | The API server (game client) to connect to (defaults to a local application, 127.0.0.1). | | allowDelete | If the sync (upload and retrieve) should be allowed to delete files at the target. | | dryRun | Doesn't sync the files, simply lists them in the terminal. |

package.json

It's recommended to be configured as a script that can then be invoked via npm run sync or similar.

{
  "scripts": {
    "sync": "bitburner-sync --watch"
  }
}

Optional config

{
  "config": {
    "bitburnerAuthToken": "abc",
    "bitburnerScriptRoot": "./dist",
    "bitburnerAllowDelete": "false",
    "bitburnerServerUrl": "127.0.0.1"
  }
}

bitburner-sync.json

This is another config file, if you prefer to have the config separate from the package.json file.

NB: The config inside package.json will override this config if both are specified.

{
  "authToken": "abc",
  "scriptRoot": "./dist",
  "allowDelete": false,
  "serverUrl": "127.0.0.1"
} 

Bitburner

Bitburner is a programming-based incremental game. Write scripts in JavaScript to automate gameplay, learn skills, play minigames, solve puzzles, and more in this cyberpunk text-based incremental RPG.

Relevant Links

The game can be played via Steam or via the Web with any browser that supports and has Javascript enabled. The discord is the place to go for information, help, to raise bugs or talk/help contribute features to the game!