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

chuckscript

v0.3.3

Published

Chuck Norris programing language, code only with zeroes

Downloads

7

Readme

Chuck Norris Programming Language

by @angrykoala

npm version bitHound Overall Score bitHound Dependencies

Chuck Norris can code using binary without 1, with Chuck Norris Programming Language (CNPL) you also can!. For those who think assembler is a high level language.

Syntax

The syntax is probably the easiest to learn: 0 is the only command you'll need. What does 0 do? Everything.

ChuckScript

Chuck Norris code is so powerful that no current machine can process it, so a higher abstraction was made to make the code comprehensible for humans (and machines):
[0]{12} means "twelve zeroes" and it is translated 000000000000 in pure Chuck Norris Code.

All ChuckScripts allow comments, and only the first command with the syntax [0]{...} will be executed. The extension is .cnpl

Hello World!

CNPL is fully functional, based on JavaScript. To start coding, just tweak this simple hello world:

[0]{9582516168086304533950061199088375933762201813077804024987245718616842}

hello_world.cnpl

Installation

You can install chuckScript from the official npm repository typing:

npm install -g chuckscript

Or you can manually clone from github and install with npm install

You need node and npm installed on your system

CNI

CNI (Chuck Norris Interpreter) is the official CNPL interpreter and allows you to execute CNPL (extension .cnpl) in your machine:

cni myprogram.cnpl

CNGEN

Of course, CNPL is the only language you'll ever need again, however, to start learning it cni also brings a cnpl code generator, which will convert your old, un-epic JavaScript code into a bright new CNPL code, to use it:

cngen myoldjs.js newsupercode.cnpl

Examples

In the folder /examples you'll find some ready-to-use examples of cnpl code:

  • hello_world.cnpl: The proper way to start learning a new language, with a easy-to-learn hello world
  • loop.cnpl: Learn the easy loop syntax of ChuckScript with this example
  • sever.cnpl: ChuckScript is web-development ready, in this example you will learn how to make your own server

Module Usage

To use chuckscript in your node.js code, simply require('chuckscript'):

  • execute(code): Executes given cnpl code (using javascript cni).
  • cnpl2js(code): Translates cnpl code to javascript, returns string with js.
  • compile(jsCode): Compiles javascript code into chuckscript.

CNPL is a improved version of Unary esoteric language

ABC.js (c) 2013 Stephan Schmitz