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",