Skip to content

petrbela/twitterapiio-node

Repository files navigation

twitterapiio

npm version npm downloads License: MIT Node.js >=22.13.0

TypeScript SDK for twitterapi.io, generated from the OpenAPI spec using Hey API.

Installation

npm install twitterapiio

Requires Node.js >= 22.13.0.

Development

Generate the SDK from the pinned OpenAPI spec:

npm run generate

Build distributable files (requires generate to have been run first):

npm run build

Prepare package for publishing (runs generation + build):

npm pack

Updating the OpenAPI spec

The spec is pinned to openapi.json in the repo for reproducible builds. To pull the latest version:

npm run refresh-spec

Then re-run npm run generate and review the diff before committing.

Publishing

Publishing is fully automated via GitHub Actions on v* tag pushes. Do not run npm publish locally.

npm version patch                    # bumps package.json, commits, creates tag e.g. v0.0.2
git push origin main --follow-tags   # pushes commit + tag → triggers publish.yml

The workflow runs npm cigeneratebuildtest → verifies the tag matches package.json version → npm publish --provenance --access public, authenticated via OIDC Trusted Publishing (no long-lived secrets required).

About

TypeScript SDK for twitterapi.io

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors