npm repo deploy

This commit is contained in:
Pablo Ferreiro
2022-08-12 14:44:51 +02:00
parent 0e4e612c3c
commit 9ed79c89d2
4 changed files with 22 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
/.venv
/.vscode
/node_modules
.vercel

4
.npmignore Normal file
View File

@@ -0,0 +1,4 @@
/.vscode
/.github
/node_modules
.vercel

View File

@@ -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

View File

@@ -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/"