├── .eslintignore ├── .eslintrc.json ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bench ├── index.js └── index.ts ├── jest.config.json ├── lib ├── detect.js └── index.js ├── package.json ├── src └── index.ts ├── test ├── detect.test.js ├── fixtures │ ├── 100x60.png │ ├── 123x456.png │ ├── 128x128.png │ ├── 243x42.png │ ├── 256x171.png │ ├── 304x85.png │ ├── 320x200.png │ ├── 70x46.png │ ├── 70x70.png │ └── file.txt ├── index.test.js └── index.test.ts ├── tsconfig.json └── tsconfig.test.json /.eslintignore: -------------------------------------------------------------------------------- 1 | *.js 2 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Javascript. 2 | build 3 | 4 | # Dependency directory 5 | node_modules 6 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/README.md -------------------------------------------------------------------------------- /bench/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/bench/index.js -------------------------------------------------------------------------------- /bench/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/bench/index.ts -------------------------------------------------------------------------------- /jest.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/jest.config.json -------------------------------------------------------------------------------- /lib/detect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/lib/detect.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/lib/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/package.json -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/src/index.ts -------------------------------------------------------------------------------- /test/detect.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/detect.test.js -------------------------------------------------------------------------------- /test/fixtures/100x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/100x60.png -------------------------------------------------------------------------------- /test/fixtures/123x456.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/123x456.png -------------------------------------------------------------------------------- /test/fixtures/128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/128x128.png -------------------------------------------------------------------------------- /test/fixtures/243x42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/243x42.png -------------------------------------------------------------------------------- /test/fixtures/256x171.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/256x171.png -------------------------------------------------------------------------------- /test/fixtures/304x85.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/304x85.png -------------------------------------------------------------------------------- /test/fixtures/320x200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/320x200.png -------------------------------------------------------------------------------- /test/fixtures/70x46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/70x46.png -------------------------------------------------------------------------------- /test/fixtures/70x70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/fixtures/70x70.png -------------------------------------------------------------------------------- /test/fixtures/file.txt: -------------------------------------------------------------------------------- 1 | A text file. 2 | -------------------------------------------------------------------------------- /test/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/index.test.js -------------------------------------------------------------------------------- /test/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/test/index.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calipersjs/calipers/HEAD/tsconfig.test.json --------------------------------------------------------------------------------