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

nanodio

v0.0.5-dev

Published

Nanodio intends to be an accessible, lightweight and a design-agnostic audio player for xhtml. The main purpose of this project was to offer a way to use audio player capabilities of modern browsers on xHtml+RDFa documents

Downloads

5

Readme

Nanodio Code Climate

Description

Nanodio is the smallest audio player ever coded! (less than 2KB)

It's simple, accessible and can be used with strict xHtml pages.

How to use it

In a web page, just include jquery.js then the jquery.nanodio.js file.

Nanodio is intended to be applied on links. So you can just need to mark some links as audio files, then activate nanodio for those files.

Here is an example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html version="XHTML+RDFa 1.0" xml:lang="fr">

  <head>
    <title>musique</title>

    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />

    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery.nanodio.js"></script>
    <script type="text/javascript">
    $(function(){
        // Activate the first link
        $('a[type="audio/ogg"]').nanodio();

        // Activate the second link
        $('a.audio').nanodio();

        // This could activate the both two in one line :  $('a[type="audio/ogg"], a.audio').nanodio();
    });
    </script>
  </head>
  <body>
    ...
    <a type="audio/ogg" href="my_favorite_creative_commons_music.ogg">A file to play</a>
    ...
    <a class="audio" href="my_favorite_creative_commons_music.ogg">A file to play</a>
  </body>
</html>

So here is the deal:

  • If the browser is able to read the file by itself, just one click on the link will play the file. An other click will stop it.
  • If the browser can't read it by itself but has a plugin to do that... it will probably launch it.
  • If the browser can't read the file, it will download it. So you can read it in your favorite sound player

So it's working with any browser (even lynx! Here is the proof: http://www.youtube.com/watch?v=A-Y9aPnojTM)