npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

parasut-api

v1.0.1

Published

This is a TypeScript wrapper for the Parasut API, designed to help developers integrate Parasut functionality into their projects easily. The package allows you to interact with various Parasut endpoints, such as authentication, customers, invoices, items

Readme

Parasut API TypeScript Wrapper

This is a TypeScript wrapper for the Parasut API, designed to help developers integrate Parasut functionality into their projects easily. The package allows you to interact with various Parasut endpoints, such as authentication, customers, invoices, items, and more.

Features

  • Authentication: Easily authenticate with the Parasut API using your credentials.
  • Customers: Fetch customer data and create new customer.
  • Invoices: Create and retrieve invoices, update their details.
  • Items: Manage items in your Parasut account.
  • Update Invoice: Update existing invoices with new data.

Installation

You can install this package via npm or yarn.

Using npm

npm install parasut-api

Using yarn

yarn add parasut-api

Usage

Basic Example

1. Authentication

To authenticate with the Parasut API, you can use the following code:

import { authenticate } from 'parasut-api';

const credentials = {
  username: 'your-username',
  password: 'your-password',
};

const token = await authenticate(credentials);
console.log(token);

2. Fetch Customers

To fetch a list of customers from the Parasut API:

import { getCustomers } from 'parasut-api';

const customers = await getCustomers();
console.log(customers);

3. Create an Customer

To create a new customer:

import { createCustomer } from 'parasut-api';

const newCustomer = await createCustomer({
  name: 'New Customer',
  email: '[email protected]',
  phone: '1234567890',
  address: 'Customer Address',
  city: 'City Name',
  country: 'Country Name',
});
console.log(newCustomer);

4. Create an Invoice

To create a new invoice:

import { createInvoice } from 'parasut-api';

const invoice = await createInvoice({
  customer_id: 'customer-id',
  items: [
    {
      item_id: 'item-id',
      quantity: 1,
      price: 100,
    },
  ],
});
console.log(invoice);

5. Update an Invoice

To update an existing invoice:

import { updateInvoice } from 'parasut-api';

const updatedInvoice = await updateInvoice('invoice-id', {
  status: 'paid',
});
console.log(updatedInvoice);

API Endpoints

This package supports the following API endpoints:

Authentication: POST /auth
Customers: GET /customers, POST /customers
Invoices: POST /invoices, GET /invoices, PUT /invoices/{id}
Items: GET /items, POST /items
Update Invoice: PUT /invoices/{id}

License

This package is open-source and available under the MIT License.