https://github.com/cstrnt/node-image-cdn
A small image CDN built on Node & Express.js
https://github.com/cstrnt/node-image-cdn
Last synced: 5 months ago
JSON representation
A small image CDN built on Node & Express.js
- Host: GitHub
- URL: https://github.com/cstrnt/node-image-cdn
- Owner: cstrnt
- License: mit
- Created: 2019-04-19T18:06:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:10:55.000Z (over 3 years ago)
- Last Synced: 2025-04-04T12:10:31.217Z (about 1 year ago)
- Language: JavaScript
- Size: 276 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-image-cdn
A small image CDN built on Node & Express.js
# Installation
Install node-image-cd globally
```
npm install -g node-image-cdn
```
# Usage
To run the tool locally simply type
```
node-cdn
```
This will start the service on Port `5555`.
## CLI usage
```
json-server [options]
Options:
--output, -o Path for the uploaded files
[default: "uploads"]
--port, -p Set port
[default: 5555]
--width, -w Set the width for the output images
[default: undefined]
--height, -h Set the height for the output images
[default: undefined]
--field, -f Set the fieldname for the FormData images
[default: image]
Examples:
node-cdn
node-cdn --port 3000
node-cdn -o ./static/my-files
node-cdn -w 200 -h -200 --field "Avatar"
https://github.com/cstrnt/node-image-cdn
```