mdn-search-docs

1.4.0 • Public • Published

MDN Search Docs

A NPM package that searches the Mozilla Developer Network website.



Say Thanks!

English README Portuguese README

npm Build Status Coverage Status Maintainability Known Vulnerabilities

About

A simple way of searching MDN content. I just wrote this package to be more complete for what I need -- see what I mean in MDNSearchBot.

How to use it

  • searchMDN ( { term: string | Array<string>; page?: number; locale?: string; topics?: string | Array<string>; })
  • locale: remember that should be in the following format: "language-COUNTRY"

Example:

import { searchMDN } from 'mdn-search-docs';
 
searchMDN({ term: 'Array' }).then(console.log);
searchMDN({ term: 'Array', locale: 'pt-BR' }).then(console.log);
 
const searched = await searchMDN({ term: 'Array', page: 2 });

Testing

There's a Travis CI integration and I've written all the testing with Jest.

Code

Plain and simple Typescript and the Microsoft linter standards for it.

Contributing

Just talk to me through opening a issue.

Versioning

Just using plain and simple npm version. See the badge at the top of this readme.

TODO

Since I will be keeping this README up to date with any major change and I don't use any versioning system to log all the fixed bugs or previous projects updates, you can still have a taste of what comes next and what is being under analysis right in the Projects tab.

Authors

  • Only me for now.

Consider buy me a coffee:

Buy Me a Coffee

Or even becoming a patron:

Patreon

License

Like many Open-Source Software (OSS) the MIT license is used, more about it in LICENSE.

Package Sidebar

Install

npm i mdn-search-docs

Weekly Downloads

0

Version

1.4.0

License

MIT

Unpacked Size

11.1 kB

Total Files

6

Last publish

Collaborators

  • fazenda