https://github.com/crazyfactory/tinka
Tinka is a dependency free fetch client, it's fetch on steroids
https://github.com/crazyfactory/tinka
api-sdk fetch hacktoberfest http-client javascript middleware middleware-pipeline nodejs sdk
Last synced: about 1 month ago
JSON representation
Tinka is a dependency free fetch client, it's fetch on steroids
- Host: GitHub
- URL: https://github.com/crazyfactory/tinka
- Owner: crazyfactory
- License: mit
- Created: 2016-09-27T02:30:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:30:59.000Z (over 3 years ago)
- Last Synced: 2025-04-02T17:02:50.095Z (about 1 year ago)
- Topics: api-sdk, fetch, hacktoberfest, http-client, javascript, middleware, middleware-pipeline, nodejs, sdk
- Language: TypeScript
- Homepage: https://crazyfactory.github.io/tinka
- Size: 2.72 MB
- Stars: 6
- Watchers: 7
- Forks: 3
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tinka
[](http://www.npmjs.com/package/@crazyfactory/tinka)
[](https://travis-ci.org/crazyfactory/tinka)
[](https://codecov.io/gh/crazyfactory/tinka)
[](https://david-dm.org/crazyfactory/tinka)
[](https://david-dm.org/crazyfactory/tinka?type=dev)
[](https://github.com/semantic-release/semantic-release)
[](https://greenkeeper.io/)
[](https://www.npmjs.com/package/@crazyfactory/tinka)
A dependency-free library to gracefully handle fetch requests.
## Usage
Tinka can be used as a standalone requirement or better yet as a basis for fully typed API SDKs.
## Contribute
Clone this repository and install project dependencies.
- `npm install`
### Tests
This package is tested using [jest](https://github.com/facebook/jest), which you can use via CLI or through most IDEs directly.
- on CLI execute `npm test` to run the tests.
This will also create a code coverage report at `/coverage`.
For continuous testing use [wallabyjs](wallabyjs.com) with our default configuration at `./wallaby.js`
### Code styles
This project uses tslint to enforce similar code styles across source and test files. Passing tslint validation is a CI requirement. You can run and validate your code style locally.
- `npm run lint` lints all typescript files in the project.
- `npm run lint-fix` to also fix most common errors automatically.
The project also comes with project based code-style settings for intelliJ-based IDEs like PhpStorm, Webstorm etc. You can safely use their auto cleanup features.
### Build and deploy
This package is automatically build and deployed using TravisCI and semantic-release. You can however test the process locally:
- `npm run build` compile sources into all desired formats.
- `npm run pack` to create the final package.
Note: You'll have to edit package.json to include a version number of your choice. Don't check this in though as the version number is determined by semantic-release.