Skip to content

Commit

Permalink
Add decode script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jun 13, 2022
1 parent 6e292ed commit dc0fdd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ git submodule update --init --recursive
```sh
npm run watch
```

## Decoding an image

```sh
# Decode an existing tga image and print object to console
npm run decode <file>
```

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lunapaint/tga-codec",
"version": "0.2.0",
"version": "0.1.0",
"description": "Decode tga files in web or node",
"main": "out-dist/public/tga.js",
"typings": "typings/api.d.ts",
Expand All @@ -9,7 +9,8 @@
"watch": "tsc -b -w ./tsconfig.json --preserveWatchOutput",
"lint": "eslint -c .eslintrc.json --max-warnings 0 --ext .ts src/ test/",
"test": "mocha ./out-test/**/*.js --timeout 20000 --diff false --enable-source-maps",
"coverage": "nyc npm run test"
"coverage": "nyc npm run test",
"decode": "node ./scripts/decode-image.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit dc0fdd0

Please sign in to comment.