🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

jotunheimr

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jotunheimr

Microservice for processing images and uploading them to a designated bucket on AWS S3

latest
Source
npmnpm
Version
1.12.1
Version published
Maintainers
1
Created
Source

Jötunheimr

Build status Codacy grade Codacy coverage NPM downloads NPM version Node version Dependency status

Smørstabbrean by Per Roger Lauritzen

From Jötunheimr, the giants menace the humans in Midgard and the gods in Asgard. The river Ifing separates Asgard, the realm of the gods, from Jötunheimr, the land of giants. Gastropnir, home of Menglad, and Þrymheimr, home of Þjazi, were both located in Jötunheimr, which was ruled by King Thrym. Glæsisvellir was a location in Jötunheimr, where lived the giant Gudmund, father of Höfund. Utgard was a stronghold surrounding the land of the giants.

This Node.JS microservice processes images before uploading them to a designated bucket on AWS S3. Utilizing express for handling requests, and node-s3-uploader for resizing and uploading to AWS S3.

Features

  • REST API
  • CORS support
  • Image type validation
  • Image resizing
  • Image color space conversion
  • Image auto orientate
  • AWS S3 upload

Install

npm install jotunheimr

Usage

Environment Variables

  • PORT_WWW - server listening port
  • ALLOW_ORIGINS - allowed origins whitelist (comma seperated)
  • AWS_ACCESS_KEY_ID AWS public key
  • AWS_SECRET_ACCESS_KEY AWS secret key
  • AWS_BUCKET_NAME AWS S3 bucket name
  • AWS_BUCKET_PATH Path inside bucket

Start

npm start

Upload

curl -X POST \
  -H "Origin: http://example.com" \
  -F image=@path/to/file.jpg \
  http://localhost:4010/upload

MIT lisenced

Keywords

Express

FAQs

Package last updated on 19 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts