Socket
Book a DemoInstallSign in
Socket

filtro-merriam-audio

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filtro-merriam-audio

Return merriam webster audio from a work

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
4
100%
Maintainers
1
Weekly downloads
 
Created
Source

filtro-merriam-audio

This filtro module returns the audios of words from Merriam Webster website

Install

npm install filtro-merriam-audio

Usage

Require filtro package

var filtro = require('filtro').filtro

Call the function filtro using merriam-audio module

var word = 'write';

filtro({
  url: 'http://www.merriam-webster.com/dictionary/' + encodeURI(word),
  modules: ['merriam-audio'],
  onError: function (error) {
    console.log('Error: ', error);
  },
  onContent: function (result) {
    console.log('All audios found in this page ', result)
    console.log(result['merriam-audio'].audios[word])
  }
});

The result will look like this:

{
  'merriam-audio': {
    audios: [
      write: {
        file: 'write001',
        word: 'write',
        firstLetter: 'w',
        completeUrl: 'http://media.merriam-webster.com/soundc11/w/write001.wav'
      },
      wrote: {
        file: 'wrote001',
        word: 'wrote',
        firstLetter: 'w',
        completeUrl: 'http://media.merriam-webster.com/soundc11/w/wrote001.wav'
      },
      written: {
        file: 'writte01',
        word: 'written',
        firstLetter: 'w',
        completeUrl: 'http://media.merriam-webster.com/soundc11/w/writte01.wav'
      },
      writ: {
        file: 'writ0002',
        word: 'writ',
        firstLetter: 'w',
        completeUrl: 'http://media.merriam-webster.com/soundc11/w/writ0002.wav'
      },
      writing: {
        file: 'writin01',
        word: 'writing',
        firstLetter: 'w',
        completeUrl: 'http://media.merriam-webster.com/soundc11/w/writin01.wav'
      }
    ]
  }
}

Alert

If you use this filtro module, make sure to inform your users that the content is from Merriam Webster

:warning: This is a Filtro module.

Keywords

url

FAQs

Package last updated on 26 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.