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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nowlang

v1.1.8

Published

Now Programming Language

Downloads

4

Readme

Now programming language

Build Status Website: https://nowlang.netlify.app Youtube: https://youtu.be/b3pY4MgOiY4

Contributing

Anyone can participate in the discussion about language changes by participating on the NowLang language mailing list, by replying to issues in this repository, and by uploading documents, tests or other resources.

There are many ways to contribute to NowLang.

  • Submit bugs and help us verify fixes as they are checked in.
  • Review the source code changes.
  • Engage with other NowLang users and developers on StackOverflow.
  • Help each other in the NowLang Community Discord. When commenting on issues in this repository, keep in mind:
  • reactions are more useful than comments to show support.
  • Motivating examples help us understand why you want new features more than pointers to other languages which have them. We love hearing feedback about your experiences with other languages, but we also want to know why they are right for NowLang in particular.

Setup

npm i -g nowlang

How to run?

nwc [.now file] [optional arguments]

Optional arguments: --tojs: convert to js file --tojsandrun: convert to js file and run

Example code

#use add for import now file
add utils.now;
#variable
var number = 0;
var object = <<log:"hello world!",end:"end">>;
#layers
layer(async){
delay(1000);
#user statement
$ isZero(number){
console.log(object.log);
}
delay(2000);
console.log(object.end);
}

#function
fn isZero(arg){
if(arg==0){
return(true);
}
return(false);
}

Document

var variablename = variable:any : variable definition Example:

var hello = "hello world";
console.log(hello);

if(var:bool){} : if condition Example:

var bool = true;
if(bool){
console.log("bool is true.");
}

else{} : else Example:

var bool = false;
if(bool){
console.log("bool is true.");
}else{
console.log("bool is false.");
}

else if(var:bool){} : else if Example:

var a = false;
var b = true;
if(a){
console.log("a");
}else if(b){
console.log("b");
}

for(again:int){} : for loop Example:

for(i=10){
console.log(i);
}

while(var:bool){} : while loop Example:

var a = true;
var s = "";
while(a){
s+="0";
if(s=="00000"){
a=false;
}
}

delay(miliseconds:int) : wait for miliseconds. Note: delay must be in layer(async). Example:

layer(async){
console.log("Hello world.");
delay(1000);
console.log("Waited for 1000 miliseconds.");
for(i=10){
delay(100);
console.log("delay in for loop.");
}
}

add path : import .now file Example: index.now

add utils.now;
for(game in games){
console.log(games[game]);
}

utils.now

var games = [
"pacman",
"tetris",
"Q*bert"
];

fn name(arguments){} : function definition Example:

writechars("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla semper porta commodo. Nunc ut neque dignissim, mattis nulla ut, dapibus neque.");
fn writechars (str) {
var chars = str.split("");
for(char in chars){
console.log(chars[char]);
} 
}

$ name(arguments){} : statement definition Example:

var percent = 100/100;
$ full(percent){
    console.log("percent is full.");
}

fn full (arg) {
  if (arg==1) {
    return(true);
  }
  return(false);
}

::> var:int : loop operator Example:

var a = "I love NowLang.".split("");
console.log(a[freeloop])::>a.length;
#*
results:
I

l
o
v
e

N
o
w
L
a
n
g
.
*#

:: var:int : inverse loop operator Example:

var a = "I love NowLang.".split("");
console.log(a[freeloop])::a.length;
#*
results:
.
g
n
a
L
w
o
N

e
v
o
l

I
*#

var:any .= var:any : it is equal to this property Example:

var a = "string";
a.=split(""); # a equal to [s, t, r, i, n, g]
console.log(a);