From dc0fdd07b9da8ed5001429465818789375532c27 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Mon, 13 Jun 2022 03:10:05 -0700 Subject: [PATCH] Add decode script --- CONTRIBUTING.md | 8 ++++++++ package.json | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 586f334..96fac25 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 +``` + diff --git a/package.json b/package.json index 01297d1..1eebb79 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",