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

ttsreader-plugin

v0.2.3

Published

Make your webpages talk! This is a simple plugin that uses the TTSReader engine to read out loud any text on your webpage.

Downloads

1,109

Readme

TTSReader-Plugin

Make your webpages talk! This is a simple plugin that uses the TTSReader engine to read out loud any text on your webpage.

Import:

Simply place the following code into your webpage's <head> tag: <script src="https://unpkg.com/ttsreader-plugin/main.js" defer></script>

Optional: In order to NOT display the controls - you can add the following to the html: <ttsplugin style="display: none;"></ttsplugin>

In order to get notified upon tts ready - add the following script:

  <script>
    window.ttspluginOnReadyListener = function() {
        // DO SOMETHING HERE...
        console.log('ttsplugin is ready');
    };
  </script>

Test on your site from the developer's console:

let el = document.createElement('script')
el.setAttribute('src','https://unpkg.com/ttsreader-plugin/main.js');
el.setAttribute('defer',true);
document.head.appendChild(el);

Developers - how to publish updates to this package?

  • Develop in the src folder.
  • Do a build by following instructions in the README.md in the top-root folder. (basically npm run prepublish).
  • Update version in package.json in the dist folder.
  • Then cd dist and run npm publish.
  • It will publish just the content of dist, and not the whole project.

License:

This is NOT an open-source package, but rather a software package you can use on your site, under the following conditions:

  1. License is given to use it as is on your site, as described in this file. Do not copy or change.
  2. General
    • This is NOT an open-source package.
    • It is published here to be used as a package only.
    • All rights reserved to WellSource Ltd. / Ronen Rabinovici - the developer.
  3. What you may do with this package:
    • You may use this package without altering the code.
  4. What you may not do with this package:
    • You may not use this package to create a competing product.
    • You may not use this package to create a similar product.
    • You may not use this package to create a derivative product.
    • You may not copy the code or any part of it.
    • You may not reverse-engineer it.