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

cli-nova

v1.3.3

Published

<p align="center"> <img width="300" src="https://github.com/dan-online/Nova/raw/master/build/round.png"> <h1 align="center">Welcome to Nova πŸ‘‹ (Beta)</h1> <p align="center"> <a href=""> <img alt="Nova NPM downloads" src="https://img.shields.io/npm/dt/

Downloads

21

Readme

Table of Contents

About

Nova is an opensource programming language built on node. The purpose of Nova is to make a pure psuedo-code language that is the perfect introduction into computer science. Completely built on node v12 and connected to npm packages, Nova is optimized for running on mac, linux and windows!

I made this project to make a pseudocode based language that simplified computer science. Nova's main purpose is to make it easier for non-programmers to learn the basics of coding. Using words such as "set" and "as" and "equals" makes it easier to follow and understand what is happening.

To get started go to usage and start your Nova journey today.

To support me, DanCodes, you can donate to my Patreon or just give this project a star :)

Usage

Install

npm i -g cli-nova

Run

nova [options] [file]

Example runs

nova test.ns
nova --verbose test.ns

Examples

// We recommend setting swift for language highlighting

set variable as "hello"; // "Strings"
output.log(variable); // Logging

set two as 1 + 1; // Numbers
set array as [1,2,3,4,5];

set chalk as include("chalk"); // Npm integration
output.log(chalk.red("Red text")); // Logs red

output.log(12 / 2 % 2 + 1); // Logs 3

if two equals 2 then output.log("two is equal to 2");

if two isnot 2 then output.log("won't be logged") else output.log("two is not not equal to 2");

Keywords

Documentation

Variables

For variables we use two keywords, "set" and "as". All variable values are evaluated on initiation and stored in memory. They can be referenced at any time throughout the code and are global.

set hello as "world1";
output.log("hello " + hello.slice(0, -1)); // output: hello world

Variables can also be set to npm modules and other files. Modules can be installed using npm.

set chalk as include("chalk");
set path as include("path");
set redText as chalk.red("red text");

output.log(redText);

set package as include(path.resolve("./package.json"));
output.log("Running v" + package.version);

Global Variables

Args

Description: Args is defined as arguments passed in the command line when starting nova.

Type: Array

Example:

// test.ns
output.log(args);

// Command line
$ nova test.ns --test
['--test']

Platform

Description: The platform the program is being run on, for example: linux, darwin and win32

Type: String

Example:

// test.ns
output.log(platform);

// Command line on macbook
$ nova test.ns
darwin

Process

Description: The process running containing information and functions to manipulate

Type: Object

Examples:

// test.ns
set exitCode as 0;
output.log("Process id is " + process.pid);
process.exit(exitCode);

// Command line
$ nova test.ns
Process id is 12345

Nova

Description: File information and Nova information

Type: Object

Examples:

// test.ns
output.log(Nova);

// Command line
$ nova test.ns
{
  directory: '/files',
  node: 'vX',
  version: 'vX',
}

Tickers

Description: Intervals and timers that allow you to run something every certain time or after a certain time

Type: Function

Examples:

// test.ns
set timer as startTimer(() => { output.log("After one second, I have logged") }, 1000);
set interval as startInterval(() => { output.log("I log every 5 seconds") }, 5000);

startTimer(() => { stopTimer(timer); stopInterval(interval); }, 11000);

// Command line
$ nova test.ns
After one second, I have logged
I log every 5 seconds
I log every 5 seconds

Include

Description: Include is an alias of node require and allows users to import npm modules and seperate files.

Type: Object

Examples:

// test.ns
set chalk as include("chalk");
output.log(chalk.red("I am red text :)"));

// Command line
$ nova test.ns
I am red text :)

Output

Description: Output is an alias of node console and lets you output to the console

Type: Object

Examples:

// test.ns
output.clear(); // This clears the output
output.log("This is regular log");
output.error("This is an error");
output.info("This is some info");

// Command line
This is regular log
This is an error
This is some info

Author

πŸ‘€ DanCodes [email protected]

🀝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

πŸ“ License

Copyright Β© 2020 DanCodes [email protected]. This project is MIT licensed.


This README was generated with ❀️ by readme-md-generator