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

firescript

v0.21.2

Published

Firescript language

Downloads

753

Readme

Firescript

Build Status

Firescript is a script language that compiles into Javascript. A language which uses indention for block scoping, it has a clear and strict syntax, it supports dynamic typing and it's lesser code to write. The compiled output is clean and readable Javascript.

Firescript is written in Node.js and partially in Firescript. It already has a syntax highlighter and linter integration for Atom IDE.

Firescript is under developing, we recommend to not use it for production yet!

Syntax

import Fruits from './fruits'

export class Banana extends Fruits
    constructor ()
        super()

        this.name = 'Banana'
        this.color = 'yellow'

    getName ()
        return this.name

    setName (str name)
        return this.name = name
import Banana from './banana'

const banana = new Banana()
print(banana.getName())

Docs

The docs page is not ready yet. If you're interested in the planed syntax, please have a look at the docs/lang/ folder.

Requirements

Firescript requires Node.js 12 or higher.

Install

There are two options to install firescript. The most common option is to install it globaly using npm.

npm install -g firescript

We recommend to install firescript localy. This installs an executable in ./node_modules/.bin which makes Firescript accessable for NPM. Use npx firescript [subcommand].

npm install firescript

Firescript is accessable on commandline by using the firescript command.

Usage

Command Line

Firescript comes with a commandline. If you've installed Firescript globally, you should have access to it by the firescript command. Run firescript help to get an overview of all available sub-commands or run firescript help <command> to get a command's help page.

Commands

| Command | Description | |----------|--| | build | Compiles all .fire files and copies assets, reads project configuration from .firerc.json | | copy | Copies all assets, configured in .firerc.json by copy option to dest folder | | init | Initialize new Firescript project at current working dir | | help | Print a command overview | | parse | Parse a .fire or .js file into an AST tree | | tokenize | Tokenize a .fire or a .js file | | compile | Compiles a .fire file into Javascript or a .js file into Firescript | | watch | Watch src dir for changes and compiles changed .fire files |

Getting started

Create a Firescript project by using the init command. Create a project folder, change into it and run firescript init to initialize a Firescript project.

mkdir ~/Projects/myfsproject
cd myfsproject
npm init
npm install firescript
firescript init

You'll find a .firerc.json file within your project folder. This file contains build and feature configuration.

Firescript uses .fire as file extension. The build command transpiles all .fire files found in the source folder and writes the output to the destination folder. All other files are being ignored during the build process.

Use the Firescript Example project to play a little with it.

Code compilation

Run firescript build to build the project. The firescript watch command re-transpiles files when their content changes. Both commands overwriting existing files without prompting.

Author

Andi Heinkelein [email protected]

License

Firescript is licensed under the MIT license.
See LICENSE