joshrtay / cloud-fs

Keep assets in the cloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cloud-fs

Build status Git tag NPM version Code style

Keep assets in the cloud.

Installation

$ npm install cloud-fs

Usage

const {url} = require('cloud-fs')
const faviconURL = url('./favicon.ico')

API

.url(file)

  • file - relative or absolute path to file

Returns: url for file

.loadCache(cache)

  • cache - new cache of files to urls

License

MIT

About

Keep assets in the cloud.


Languages

Language:JavaScript 90.1%Language:Makefile 8.9%Language:CSS 1.0%