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

jamocha

v1.0.2

Published

Mocha reporters for Jasmine

Downloads

2

Readme

jamocha

Write tests for nodejs, then run in jasmine. Bonus: have mocha spec reporter (or list, tap, nyan).

Usage

# prepare
npm install -D jasmine jamocha
mkdir test ; cp node_modules/jamocha/test/.jasmine.json test/

# set test script to `jasmine --reporter=jamocha/spec --config=test/.jasmine.json`
node -r fs -e "const p = require('./package.json'); p.scripts.test = 'jasmine --reporter=jamocha/spec --config=test/.jasmine.json'; fs.writeFileSync ('./package.json', JSON.stringify (p, null, 2));"

# test
npm test

Reasons

Mocha have better reports

So, I've adopted them

Jasmine expect almost as good as jest one

Use builtin expect, nodejs assert or anything else.

With reduced cost, because:

Jasmine have much less deps than others

jasmine: 12 dependencies

npm i -D jasmine
+ [email protected]
added 13 packages from 4 contributors and audited 16 packages in 2.371s

mocha: 114 dependencies

npm i -D mocha
+ [email protected]
added 115 packages from 507 contributors and audited 223 packages in 4.305s

ava: 521 dependency

npm i -D ava

> [email protected] install jamocha/node_modules/fsevents
> node install

node-pre-gyp WARN Using needle for node-pre-gyp https download 
[fsevents] Success: "jamocha/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
+ [email protected]
added 522 packages from 223 contributors and audited 3399 packages in 14.44s

jest: 556 dependencies

npm i -D jest

> [email protected] install jamocha/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "jamocha/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote
+ [email protected]
added 556 packages from 373 contributors and audited 849829 packages in 22.241s