Man pages for web APIs using MDN
$ npm i @rafaelrinaldi/mdn -g
$ mdn array.of
$ mdn background-image --language=css
$ # Will open the MDN page on user's default browser
$ mdn function.bind --open
MIT ยฉ Rafael Rinaldi
Man pages for web APIs using MDN
License: MIT License
Man pages for web APIs using MDN
$ npm i @rafaelrinaldi/mdn -g
$ mdn array.of
$ mdn background-image --language=css
$ # Will open the MDN page on user's default browser
$ mdn function.bind --open
MIT ยฉ Rafael Rinaldi
MDN is releasing a new version of their website, which uses React. It looks super cool and we should add support for it.
Ran a quick test locally and things seem to just work.
I was at a Slack event the other day and was thinking that the general idea behind this package could be used for a great Slack bot. But to actually use it as such, there needs to be a way to require
and execute the script so that it doesn't log to the console, but instead returns the information.
That got me thinking, maybe it makes sense to separate the data fetch entirely from the console output.
ie: we scrape the page for all the relevant, unformatted information and build an object, and then we return that (promise of an) object directly for people to do as they please, or we pass it to a function that then constructs the output for the console. The default behavior when installed globally would remain logging to the console, but as a locally installed module it could be useful in other projects, such as a Slack bot.
It would of course require a good deal of refactoring, but do you think this is worth doing? Either way, I'm free this evening so unless I get tempted by bourbon, I'll see if I can make a quick prototype ;-)
We should publish v1.2.0
to npm. I would just look through the diff, make sure that linting is ๐ and publish it.
Since we only support JavaScript (the default) and CSS, I think we can do:
$ mdn background-image --css
Instead of
$ mdn background-image --language=css
We can of course introduce this change with backwards compat.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.