Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

imagecachejs

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imagecachejs - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc