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

fast-average-color-node

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-average-color-node - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

4

dist/index.js

@@ -9,4 +9,4 @@ "use strict";

const node_fetch_1 = __importDefault(require("node-fetch"));
const fast_average_color_1 = __importDefault(require("fast-average-color"));
const fac = new fast_average_color_1.default();
const fast_average_color_1 = require("fast-average-color");
const fac = new fast_average_color_1.FastAverageColor();
const MIN_SIZE = 10;

@@ -13,0 +13,0 @@ const MAX_SIZE = 100;

{
"name": "fast-average-color-node",
"version": "2.3.0",
"version": "2.4.0",
"description": "A simple library that calculates the average color of images in Node.js.",

@@ -13,3 +13,3 @@ "main": "dist/index.js",

"dependencies": {
"fast-average-color": "^7.1.0",
"fast-average-color": "^9.1.1",
"node-fetch": "^2.6.1",

@@ -19,3 +19,3 @@ "sharp": "^0.30.6"

"devDependencies": {
"@types/jest": "^28.1.2",
"@types/jest": "^28.1.3",
"@types/node-fetch": "^2.6.2",

@@ -39,5 +39,6 @@ "@types/sharp": "^0.30.4",

"scripts": {
"test": "jest --config ./jest.config.js .",
"test": "npm run typecheck && jest --config ./jest.config.js .",
"build": "tsc -p tsconfig.json",
"prepare": "npm run build"
"prepare": "npm run build",
"typecheck": "tsc --noEmit"
},

@@ -44,0 +45,0 @@ "author": {

import sharp from 'sharp';
import fetch from 'node-fetch';
import { default as FastAverageColor, FastAverageColorOptions, FastAverageColorResult } from 'fast-average-color';
import { FastAverageColor, FastAverageColorOptions, FastAverageColorResult } from 'fast-average-color';

@@ -5,0 +5,0 @@ const fac = new FastAverageColor();

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