/cloud-fs

Keep assets in the cloud.

Primary LanguageJavaScript

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