New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

imagine-cloudfiles

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagine-cloudfiles

Cloudfiles storage for Imagine

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

Imagine-Cloudfiles

Cloudfiles storage for Imagine.

Installation

If you haven't already done so, make sure to install imagine-cloudfiles in your Imagine folder:

$ npm install imagine-cloudfiles

Then place something similar to the following into your config.json file for Imagine:

"storage": "imagine-cloudfiles",

"imagine-cloudfiles": {
  "user": "USER",
  "key": "KEY",
  "containerPrefix": "imagine-assets",
  "containerHashLength": 4
}

Replace USER and KEY with your Cloudfiles account data.

Container Hashing

In order to sufficiently distribute images across containers in Cloudfiles without user input, Imagine-Cloudfiles places images into containers based on an MD5 hash of the image name that is trimmed to the size of the containerHashLength and prefixed with the containerPrefix. Simply reverse this container hash operation to find which container an image file resides.

containerPrefix and containerHashLength can be changed to meet your needs.

Other Options

You can change the default Cloudfiles host (auth.api.rackspacecloud.com) by adding the following to the imagine-cloudfiles section of your config:

"host": "lon.auth.api.rackspacecloud.com"

If you're using Rackspace Cloud Servers, be sure to turn on ServiceNet for fast, unmetered access to Cloudfiles by adding this to the imagine-cloudfiles section of your config:

"servicenet": true

License

Imagine-Cloudfiles is distributed under the MIT License. See LICENSE for more details.

FAQs

Package last updated on 22 Oct 2012

Did you know?

Socket

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.

Install

Related posts