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

testacular

v0.6.2

Published

This project has been renamed to Karma.

Downloads

1,379

Readme

Testacular

Simple tool, that allows you to execute JavaScript code in multiple browsers or just in Node.js.

Prerequisites

Installation

sudo npm install testacular -g

# or install in local folder
npm install testacular

You can install Testacular even without NPM, just clone the git repo, build and create symlinks (you will need Jake build tool):

git clone git://github.com/vojtajina/slim-jim.git
cd testacular
jake build
sudo ln -s $PWD/bin/testacular /usr/local/bin/testacular
sudo ln -s $PWD/bin/testacular-run /usr/local/bin/testacular

What is this good for ?

Mostly for testing you code in multiple browsers (desktop, mobile, tablets):

  • executing tests on continuous integration server
  • executing tests during development

Testacular does not provide any testing framework, so you can use anything you like. It's main goal is to be stable and highly extensible.

Why am I doing this ?

During development of AngularJS, we've been using JSTD for testing. I really think, it's great idea. Unfortunately, we had many problems with JSTD, so we decided to write our own tool, without testing frameworks or anything you actually don't need. Just simple tool for execution JavaScript, that is stable and fast. That's why we use awesome socket.io library. More than that, with Node.js, we can execute javascript even without any browser, which is much faster, so it's very helpful during development, when we need to get the feedback as quick as possible.

  • anything on console will leak whole iframe window
  • it clears console before run (but works only in FF), Chrome/Safari does not allow, so do this: console.clear = clear;