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

code-live-student

v2.0.1

Published

A tool that allows live syncing from an instructor's code project. Must be paired with code-live-instructor.

Downloads

11

Readme

code-live - student

code-live is a tool used to help instructors sync their code live with their students. The student can then use those files being synced to compare against their own code to help prevent bugs/errors.

code-live will run a server in the background that listens for any changes that the instructor saved to their code. When changes occur, it will implement those changes.

This package only works when paired with code-live-instructor.

Installation

Using npm:


npm i -g code-live-student

Usage

Navigate to the directory that will hold the instructor's syncing code and run:


code-live [ip address of instructor]

You will need to receive the ip address from the instructor and use it as an argument in the command line.

The code-live server will start running in the background on port 5000 and will receive any changes that were made by the instructor.

When your code-live server connects to the instructor's code-live server, it will notify you in the terminal of the connection by printing to the terminal code-live is connected.

Usage with VS Code

When you run the code-live [ip address] command, a directory called __instructor-code__ will be created for you. This will keep your code and the syncing instructor's code separate to prevent any overwrites. For example, a file structure with a react application would look something like this:

/node_modules
/public
/src
package.json
package-lock.json
README.md
.gitignore

/__instructor-code__
  |-- /public
  |-- /src
  |-- package.json
  |-- package-lock.json
  |-- README.md

Notice how the folder __instructor-code__ contains a public and src folder along with some files. This would be the instructor code. Also, notice how there is no .gitignore or node_modules, these files will not be synced to your computer as they will be ignored on the instructor side.

You can compare selected files using VS Code's compare functionality. Do so by selecting the instructor file you want to compare and then your file that you want to compare so that both are selected. It's important that you select your file last, you are only able to edit the file that is selected last. After doing this, right click on the last file selected to select the option Compare Selected. This will open both files in your editor and compare the differences between the two files.