diff --git a/.gitignore b/.gitignore index 0e9e6cc..e7c9f2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/.venv /.vscode /node_modules .vercel diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..4ced873 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +/.vscode +/.github +/node_modules +.vercel diff --git a/README.md b/README.md index dd5cf4e..494dbdb 100644 --- a/README.md +++ b/README.md @@ -37,5 +37,21 @@ If you plan to use the already deployed Vercel version, you should use https://s node local.js 'YOUR_URL_HERE' ``` +### Library +```bash +npm install signtok +``` + +```javascript +const SignTok = require('signtok'); + +const signer = new SignTok(); +console.log(signer.sign('URL_HERE')); +``` + +## TODO +* Typescript typing +* Publish to npm with Github Actions + ## Credits * @H1W0XXX for providing a working X-Bogus script diff --git a/package.json b/package.json index c189a4a..937f8ea 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "description": "Sign your TikTok requests easily", "repository": "https://github.com/pablouser1/SignTok", "author": "Pablo Ferreiro", + "main": "src/Signer.js", "license": "MIT", - "private": true, + "keywords": ["tiktok", "tiktok-signer", "jsdom"], "scripts": { "start": "node api/index.js", "vercel-build": "yum -y install libuuid-devel libmount-devel && cp /lib64/{libuuid,libmount,libblkid}.so.1 node_modules/canvas/build/Release/"