Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
docpad-plugin-flickrimages
Advanced tools
This plugin will handle uploading images to flickr and linking them to your site in DocPad
Lots of thing to do:
npm install --save docpad-plugin-flickrimages
The way it works is by looking into src/files/flickr-images/#{document.flickrImagesDirectory or document.basename}
for files. Where flickrImagesDirectory
is set in your document's meta data, and if it doesn't exist it will use the document's basename (e.g. the basename of my-holiday-2012.html.eco
is my-holiday-2012
). Any files inside that path will be associated to your document, and retrievable by @getDocument().getAssociatedFiles()
Lets see how this works, we have the document src/documents/my-holiday-2012.html.eco
:
---
title: My Holiday in 2012
---
<h2>Here are some great photos from our trip</h2>
<%- @getDocument().getFlickrImage('The Eiffel Tour.jpg') %>
Then we will stick The Eiffel Tour.jpg in this folder: src/files/flickr-images/my-holiday-2012
. And we'll end up with the rendered result:
<h2>Here are some great photos from our trip</h2>
<a rel="flickr-images/my-holiday-2012/" class="fancybox" data-fancybox-href="http://farm9.staticflickr.com/8528/8521291746_fc4e33b592_b.jpg" href="http://www.flickr.com/photos/92861950@N07/8521291746/"><img src="http://farm9.staticflickr.com/8528/8521291746_fc4e33b592.jpg"></a>
You need to create a .env file in your docpad repository containing the following line:
flickrKey=1xxxxxxxxxxxxxxxxxxxxxxxx
flickrSecret=0xxxxxxxxxxxxx
flickrOAToken=7xxxxxxxxxxx-3xxxxxxxxxxxxx
flickrOASecret=5xxxxxxxxxxxxx
Isn't that cool?
You can discover the history inside the History.md
file
Licensed under the incredibly permissive MIT License
Copyright © 2013+ Thomas Piart
FAQs
DocPad plugin that uploads images to flickr
We found that docpad-plugin-flickrimages demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.