Skip to content

Commit b7221b3

Browse files
committed
initial commit
1 parent e37df7e commit b7221b3

14 files changed

+4703
-1
lines changed

.eslintignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.history
2+
.husky
3+
.vscode
4+
coverage
5+
dist
6+
node_modules
7+
vite.config.ts

.eslintrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:prettier/recommended"
10+
],
11+
"env": {
12+
"browser": true,
13+
"node": true
14+
}
15+
}

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
coverage
15+
16+
# Editor directories and files
17+
.vscode/*
18+
.history/*
19+
!.vscode/extensions.json
20+
.idea
21+
.DS_Store
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw?

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.lintstagedrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"./**/*.{ts,json}": "npm run format"
3+
}

.npmignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.github
2+
.husky
3+
coverage
4+
src
5+
node_modules
6+
src
7+
tests
8+
.eslintignore
9+
.eslintrc
10+
.gitignore
11+
.lintstagedrc
12+
.prettierignore
13+
.prettierrc
14+
dts-bundle-generator.config.ts
15+
tsconfig.json
16+
vite.config.ts

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.history
2+
.husky
3+
.vscode
4+
coverage
5+
dist
6+
node_modules
7+
vite.config.ts

.prettierrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"singleQuote": false,
5+
"trailingComma": "es5",
6+
"arrowParens": "avoid",
7+
"bracketSpacing": true,
8+
"useTabs": false,
9+
"endOfLine": "auto",
10+
"singleAttributePerLine": false,
11+
"bracketSameLine": false,
12+
"jsxBracketSameLine": false,
13+
"jsxSingleQuote": false,
14+
"quoteProps": "as-needed",
15+
"semi": true
16+
}

README.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
# imgproxy-node
1+
<p align="center">
2+
<a href="https://imgproxy.net">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/imgproxy/imgproxy/master/assets/logo-dark.svg?sanitize=true">
5+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/imgproxy/imgproxy/master/assets/logo-light.svg?sanitize=true">
6+
<img alt="imgproxy logo" src="https://raw.githubusercontent.com/imgproxy/imgproxy/master/assets/logo-light.svg?sanitize=true">
7+
</picture>
8+
</a>
9+
</p>
10+
11+
---
12+
13+
**[imgproxy](https://github.com/imgproxy/imgproxy)** is a fast and secure standalone server for resizing and converting remote images. The main principles of imgproxy are simplicity, speed, and security. It is a Go application, ready to be installed and used in any Unix environment—also ready to be containerized using Docker.
14+
15+
imgproxy can be used to provide a fast and secure way to _get rid of all the image resizing code_ in your web application (like calling ImageMagick or GraphicsMagick, or using libraries), while also being able to resize everything on the fly on a separate server that only you control. imgproxy is fast, easy to use, and requires zero processing power or storage from the main application. imgproxy is indispensable when handling image resizing of epic proportions, especially when original images are coming from a remote source.
16+
17+
- [Install](#install)
18+
19+
## Install
20+
21+
```bash
22+
npm install imgproxy-node
23+
```
24+

dts-bundle-generator.config.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// eslint-disable-next-line @typescript-eslint/no-var-requires
2+
const packageJson = require("./package.json");
3+
4+
const getPackageName = () => {
5+
return packageJson.name;
6+
};
7+
8+
const config = {
9+
entries: [
10+
{
11+
filePath: "./src/index.ts",
12+
outFile: `./dist/${getPackageName()}.d.ts`,
13+
noCheck: false,
14+
},
15+
],
16+
};
17+
18+
module.exports = config;

0 commit comments

Comments
 (0)