Hey guys! So I have a plugin request that I think could be helpful to a large number of people. There should be an easy non-terminal way for people to pull in pieces of code. For example, letâs say that Iâm using Eric Meyerâs reset; I could save it to a snippet, but then, if he updates it at any point, Iâm now using an out-dated stylesheet.
Can one of you build a curl plugin? As I imagine it, there could be an options page for attaching urls to keys.
{
âresetâ : âhttp://meyerweb.com/eric/tools/css/reset/reset.cssâ,
âprefix-freeâ : âhttps://raw.github.com/LeaVerou/prefixfree/master/prefixfree.min.jsâ
/// etc
}
These keys will then be available to me as commands (maybe under a âfetchâ namespace or something). So, I create a new blank reset.css file, run the âfetch resetâ command, and, behind the scenes, the plugin fetches the data and pastes the result into the current file.
(It would be even cooler if there was a way to fetch zip files. Maybe I want the latest version of WordPress. I can run âfetch WordPressâ, and it will use the url to the latest release of the framework, download the zip file, and extract it to the project directory.)
Granted, I know itâs easy to do something like: curl meyerweb.com/eric/tools/css/reset/reset.css > reset.css in the terminal, but a plugin like this would still prove to be helpful for a few reasons:
- You donât have to memorize these urls
- Designers hate the command line
- Itâs faster
So let me know what you think. If incentive is required, Iâm the editor of Nettuts+. If one of you would build it, and allow us to brand/name it as Nettuts+ Fetch (or something similar), we could pay you $400. Either way works!