diff --git a/.gitattributes b/.gitattributes index 543659d..11d938d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,6 +3,7 @@ *.json text eol=lf *.ts text eol=lf *.html text eol=lf +*.txt text eol=lf *.min.js binary vendor/* binary diff --git a/README.md b/README.md index c41c0d9..5c8980c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,14 @@ cool if you leave a follow or spend some virtual coffee. ## PHP Implementation Chances are high that you probably need a PHP implementation too. I've made one here -> https://github.com/brainfoolong/php-ascon +## Installation + + # for npm + npm install js-ascon + const JsAscon = require('js-ascon') + # in browser + + ## Usage For more demos see in folder `demo`. diff --git a/package.json b/package.json index 57ce13b..0dc872c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-ascon", - "version": "1.0.0", + "version": "1.0.1", "description": "JavaScript / TypeScript Implementation of Ascon, a family of authenticated encryption (AEAD) and hashing algorithms designed to be lightweight.", "scripts": { "dist": "node ./node_modules/typescript/bin/tsc --project tsconfig.json && node build/dist.js", @@ -19,7 +19,11 @@ "devDependencies": { "typescript": "^5.3.2" }, - "engines" : { - "node" : ">=14.21.3" - } + "engines": { + "node": ">=14.21.3" + }, + "dependencies": { + "js-ascon": "^1.0.0" + }, + "main": "dist/ascon.js" }