imagecachejs
Advanced tools
Comparing version 0.0.24 to 0.0.25
{ | ||
"name": "imagecachejs", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "", | ||
@@ -27,4 +27,2 @@ "license": "ISC", | ||
"jimp": "^0.2.28", | ||
"json-hash": "^1.2.0", | ||
"lodash": "^4.17.4", | ||
"request": "^2.81.0" | ||
@@ -31,0 +29,0 @@ }, |
@@ -12,6 +12,5 @@ # Imagecache | ||
Imagecache is an express middleware that lets you manipulate images and then | ||
cache them for quick retrieval. | ||
`Express` middleware for transforming images and caching them for quick retrieval | ||
## Installation | ||
## Get started | ||
Install with [npm](http://npmjs.com) or [yarn](https://yarnpkg.com): | ||
@@ -23,4 +22,5 @@ | ||
## Usage | ||
It's easy to just add imagecache to your application | ||
You can then use `imagecache` in your project. The constructor imagecache() will | ||
return an `express` router which you can mount as a subpath for your | ||
`express` app | ||
@@ -27,0 +27,0 @@ ```JavaScript |
import fs from 'fs' | ||
import path from 'path' | ||
import _ from 'lodash' | ||
import express from 'express' | ||
import { Router } from 'express' | ||
import Request from 'request' | ||
import Jimp from 'jimp' | ||
import URL from 'url' | ||
import url from 'url' | ||
import tinycolor from 'tinycolor2' | ||
import qs from 'qs' | ||
import url from 'url' | ||
import { digest } from 'json-hash' | ||
@@ -97,3 +93,3 @@ const request = Promise.promisify(Request) | ||
return path.resolve(options.webRoot, pathPrefix, transforms, ...pathParts).replace(`.${fileExt}`,`.${format}`) | ||
return path.resolve(options.webRoot, pathPrefix, transforms, ...pathParts).replace(`.${fileExt}`,`.${ext}`) | ||
@@ -100,0 +96,0 @@ } |
@@ -1,3 +0,1 @@ | ||
import { expect } from 'chai' | ||
describe('imagecache', () => { | ||
@@ -4,0 +2,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
9509392
43
737
- Removedjson-hash@^1.2.0
- Removedlodash@^4.17.4
- Removedjson-hash@1.2.0(transitive)
- Removedlodash@4.17.21(transitive)