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

bracks-cli

v5.0.3

Published

bracks command line interface

Downloads

3

Readme

#bracks-cli

travis build npm version

bracks command line interface. If you don't know what bracks style document is, please read bracks-parser.

#####Install Please use npm install -g bracks-cli. -g because it is a command line utility and is preferred to be exposed globally. Then, run bracks -v to make sure that it has been installed successfully. If you encounter with a problem or getting EACCES error, please read fixing-npm-permissions. If still not successful, please mention that in the issues. It will be responded back as fast as possible.

#####How to use You can use bracks either by manually run it whenever you want and pass the -o (flag for output), or you can have it watch the provided bracks directory by passing the -w (flag for watch).

If you run it with -o, here is how you can use it:

Please create a directory and name it bracks. Then, put all html or ejs files that are written in a bracks syntax in this direcory. Files can be located in sub-direcories. It doesn't matter. The parser will find them, convert them all to html or ejs, and pipe the result documents to the provided destination. The parser presumes everything under bracks directory is written in a bracks style. As a result, they all being converted to html and/or ejs and being piped to the provided target directory.

If you run it with -w, here is how you can use it:

Instead of writing all files completely and then pass them to bracks, you can have it watch the provided bracks directory. By running it this way, upon any changes in any files under the given bracks directory, the parser parses the files, converts them all to html or ejs (whatever the original file extension is), and pipes the result documents to the provided target directory. Please notice here, in this mode, if the parser doesn't find any errors, nothing will be shown on the console in order to avoid disrupting the flow of development. So, if you don't see any errors on the console after you saved your file, you can have a pretty good confidence that changes were being transferred correctly to the corresponding file under the provided target directory.

#####List of command line options The complete list of bracks command line options:

  1. bracks -o <path to bracks directory> <target directory>

    example: bracks -o /home/yourproj/bracks /home/yourproj/views

  2. bracks -w <path to bracks directory> <target directory>

    example: bracks -w /home/yourproj/bracks /home/yourproj/views

  3. bracks -v (show the current version of the app)

  4. bracks -h (show the help menu)

#####Example of a bracks style html document index.html:

<!DOCTYPE html>
html[
  c/[your comment]/c
  head[title[your page title]title]head
  body[
    h1[explore your mind]h1
    b[your bold text]b
    div(id="yourdiv" class="yourdivclass")[
      a(href="https://www.google.com")[link to google]a
      ul(style="list-style-type:disc")[
        li[item1]li
        li[item2]li
        li[a(href="https://www.google.com")[link to google]a]li
      ]ul
    ]div
    div[
      p[it is a samp s script footer paragraph tester]p
    ]div
  ]body
]html

#####Example of a bracks style ejs document index.ejs:

<!DOCTYPE html>
html[
  head[
    title[your page title]title
    link(rel="stylesheet" href="/stylesheets/style.css")/]
    meta(charset="utf-8")/]
  ]head
  body(class="%= page %]")[
    [% include partials/template/header.ejs %]
      section(class="layout")[
        div(class="primary")[
          %- include partials/content/home-page.ejs -%
        ]div
        p[explore your mind]p
        aside(class="secondary")[
          %- include partials/content/proj-page.ejs %]
        ]aside
      ]section
    [% include partials/template/footer.ejs %]
  ]body
]html