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

generator-c64basicv2

v0.2.1

Published

A Yeoman generator to scaffold a simple c64 basic v2 project

Downloads

9

Readme

generator-c64basicv2

A Yeoman generator to scaffold a simple c64 basic v2 project. Designed to be used with c64basicv2 Visual Studio Code Extension or standalone.

NPM version NPM downloads

Installation

First, install Yeoman and generator-c64basicv2 using npm and Node.js:

npm install -g yo
npm install -g generator-c64basicv2

Then generate your new project:

mkdir myC64Project
cd myC64Project

yo c64basicv2

Folder structure

generator-c64basicv2 creates the following folder structure:

\       -> root dir
\bin    -> converted programs
\d64    -> d64 disk
\src    -> source programs
    |
    ------ helloworld.prg

bash Script

generator-c64basicv2 gives you three bash scripts to convert and run c64 basic v2 programs. To use these script install Vice

run.sh: to run a prg using Vice (x64sc)

#!/bin/bash
SOURCE=$(echo $1)
FILENAME=$(echo ${SOURCE##*/})
echo $FILENAME
petcat -w2 -o ./bin/$FILENAME -- $1
x64sc ./bin/$FILENAME

run this script using the command:

bash run.sh src/helloworld.prg

convertAll.sh: to convert all the prg (src folder) between ASCII, PETSCII and tokenized BASIC.

#!/bin/bash
for filename in ./src/*.prg; do
    SOURCE=$(echo $filename)
    echo $SOURCE
    DEST=$(echo ${SOURCE##*/})
    echo $DEST
    petcat -w2 -o ./bin/$DEST -- $SOURCE
done

created64.sh: to create a d64 image disk containing all the converted prg

#!/bin/bash
c1541 -format "diskname,1" d64 ./d64/diskname.d64
for filename in ./bin/*.prg; do
    SOURCE=$(echo $filename)
    echo $SOURCE
    DEST=$(echo ${SOURCE##*/})
    echo $DEST
    c1541 ./d64/diskname.d64 -write $filename $DEST
done

License

BSD 3-Clause "New" or "Revised" License