From 1327dad7f01777101b9dd030ca3ca6ff7e88800a Mon Sep 17 00:00:00 2001 From: Jecsham Date: Fri, 26 Jul 2024 18:25:14 -0500 Subject: [PATCH 1/4] dev dependencies upgrade --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8fe094f..c8761c7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "https://github.com/jecsham/shorthash2/issues" }, "devDependencies": { - "nyc": "^15.1.0", - "tape": "^5.0.1" + "nyc": "^17.0.0", + "tape": "^5.8.1" } } From 9ae7333522ba24d535bdb8a3095316cdbdbbbec0 Mon Sep 17 00:00:00 2001 From: Jecsham Date: Fri, 26 Jul 2024 18:25:32 -0500 Subject: [PATCH 2/4] update readme for contributions --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc45d34..175650b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ + A mini js lib to generate short, alpha-number, undecryptable and unique hash id from a long string (utf8 format). + Use shorthash2 when you want to encrypt a string like a movie name or a people name to a short, unique and url friendly id. -+ so with shorthash2, you can build an id-string map, instead of quering the id from db each time, you just calculate the id out on the fly. ++ so with shorthash2, you can build an id-string map, instead of quering the id from db each time, you just calculate the id out on the fly. + it's quite convenient in many conditions if you want to build a site like [书本画](http://shubenhua.com), a book search engine in China. ## Install @@ -37,4 +37,9 @@ shortHash('万里长城永不倒。。。'); shortHash('和平'); // => 33NM -``` \ No newline at end of file +``` + +### Development +1. Clone repo +2. Install dev dependencies: `$ npm i` +3. Run tests: `$ npm test` From ccbae05157d5b8ed57623545ce7bf5631f556bfb Mon Sep 17 00:00:00 2001 From: Jecsham Date: Fri, 26 Jul 2024 18:25:51 -0500 Subject: [PATCH 3/4] update npmignore --- .npmignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..92d6c40 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +* +!dist/ From 04ae88cb62d87dad644fb1614d14404676f040cc Mon Sep 17 00:00:00 2001 From: Jecsham Date: Fri, 26 Jul 2024 19:19:12 -0500 Subject: [PATCH 4/4] 1.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c8761c7..5687775 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shorthash2", - "version": "1.0.3", + "version": "1.0.4", "description": "Get a unique short hash of a string. Mainly based on shorthash.", "main": "dist/index.js", "scripts": {