Skip to content

Commit

Permalink
npm repo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Aug 12, 2022
1 parent 0e4e612 commit 9ed79c8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/.venv
/.vscode
/node_modules
.vercel
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.vscode
/.github
/node_modules
.vercel
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit 9ed79c8

Please sign in to comment.