Unofficial PostNL SDK for Node.js inspired by Resend

This is an unofficial Node.js SDK for the PostNL API. It is a wrapper around the PostNL API, which is a RESTful API that
allows you to create shipments, request shipping labels, and track shipments.
_This SDK is not affiliated with PostNL._
Refer to PostNL API documentation for more information.
``bash`
npm install postnl-sdk
`typescript
import { PostNL } from 'postnl-sdk';
const postnl = new PostNL('your-api-key');
`
The api key is _optional_. If not provided, it will search for the POSTNL_API_KEY environment variable.
typescript
const payload: GenerateBarcodeOptions = {
CustomerCode: "DEVC",
CustomerNumber: "11223344",
Type: '3S',
};const barcode = await postnl.barcode.generate(payload);
// Output: { Barcode: '3SDEVC903942795' }
``