
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Simple utilities for building SDKs and API clients. ✈🚀
# yarn
yarn add venturer
# npm
npm install --save venturer
Venturer's paramUrl function makes it easy to handle rest-style path parameters.
Parameters must be wrapped in curly brackets, eg. {userId}.
You can set the parameter using the string within the brackets, in this case userId.
A url can have as many parameters as you want.
import { paramUrl } from 'venturer';
let url = paramUrl('/users/{userId}/post/{postId}');
url({ userId: '123', postId: 'abc' });
// > /users/123/post/abc
Venturer includes an easy-to-use request client based on ky.
The default client allows you to make simple request without setting up anything.
import { request } from 'venturer';
// get
request.get('https://example.com', {
// ky options
});
// delete
request.delete('https://example.com', {
// ky options
});
// post
request.post('https://example.com', {
// request body
}, {
// ky options
});
// put
request.put('https://example.com', {
// request body
}, {
// ky options
});
// patch
request.patch('https://example.com', {
// request body
}, {
// ky options
});
A custom client allows you to set options for all request, like a url-prefix or auth token.
Custom clients have the same api as the default client.
import { createClient } from 'venturer';
let client = createClient('https://api.example.com', {
authorization: '<auth token>'
});
client.get('/user/123');
// makes a request to `https://api.example.com/user/123`
Venturer has built-in support for header-based authentication. By default it uses bearer auth.
request.get('https://example.com', {
authorization: '<auth token>'
});
// will set the `authorization` header to `bearer <auth token>`
You can optionally override the authorization header/scheme.
request.get('https://example.com', {
authorization: '<auth token>',
authorizationHeader: 'auth',
authorizationScheme: 'token'
});
// will set the `auth` header to `token <auth token>`
FAQs
```bash # yarn yarn add venturer
We found that venturer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.