Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Batch upload files to Cloudinary
Cloudinate automates uploading files to Cloudinary. It accepts a glob pattern and uploads all files that match the pattern to Cloudinary. Cloudinate is meant to simplify the uploading of assets for the metalsmith-cloudinary plugin, but can of course be used for other purposes as well.
$ npm install cloudinate
Cloudinate can also be installed globally with npm install cloudinate -g
If you've installed cloudinate locally you could use a script upload.js
:
var cloudinate = require('cloudinate');
// Settings
var keys = require('./keys')
cloudinate({
keys: keys,
files: './images/*.jpg'
});
Where keys.js
is a module that exports your api keys like so:
// Ignore this with your .gitignore
module.exports = {
'cloud_name': 'your_cloud_name_here',
'api_key': 'your_api_key_here',
'api_secret': 'your_api_secret_here'
}
Run the above script with node upload.js
.
Or if you've installed cloudinate globally, you can run it from the command line like so:
$ cloudinate -k 'keys.js' -f 'images/**/*.jpg'
You can pass the following options:
-f
)cloud_name
, api_key
and api_secret
(required, command line flag: -k
)-r
)Cloudinate will upload the files that match the supplied pattern. Uploaded files will be given a public_id
according to their relative path and name, to make subsequent retrieval easier.
For example, successfully uploading images/1.jpg
would result in output that resembles:
{
public_id: 'images/1',
version: {version number here},
signature: {signature number here},
width: 7200,
height: 10800,
format: 'jpg',
resource_type: 'image',
created_at: '2016-02-20T12:44:44Z',
tags: [],
bytes: 3008861,
type: 'upload',
etag: {etag number here},
url: 'http://res.cloudinary.com/{cloud_name_here}/image/upload/v{version_number_here}/images/1.jpg',
secure_url: 'https://res.cloudinary.com/{cloud_name_here}/image/upload/v{version_number_here}/images/1.jpg',
original_filename: '1'
}
MIT
FAQs
Batch upload files to Cloudinary.
The npm package cloudinate receives a total of 0 weekly downloads. As such, cloudinate popularity was classified as not popular.
We found that cloudinate 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.