open-index/open-npm huggingface dataset:
npm package: @obipascal/paystack-nodejs-sdk
Description: A comprehensive paystack API sdk for nodejs written in typescript
Author: Obi Pascal
Latest version: 1.2.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

## Paystack API SDK For NodeJS

A Node.js package that facilitates type checking and offers compatibility with both CommonJS and ES6 environments within TypeScript. This package utilizes Axios as its HTTP client for seamless communication with the Paystack backend.

### Paystack Resource Available

-   ApplePay
-   Charge
-   Const
-   Customer
-   DedicatedVirtualAccount
-   Dispute
-   Miscellaneous
-   Page
-   PaymentRequest
-   Plans
-   Product
-   Refund
-   Subaccounts
-   Subscription
-   Transactions
-   Transfer
-   TransferRecipient
-   Verification

### Installation

```
npm install @obipascal/paystack-sdk
```

or

```
yarn add @obipascal/paystack-sdk
```

### Usage

```js
// import the resource you want to consume
import { Customers } from "@obipascal/paystack-sdk";

// initialize the resouce with your paystack secret key
const customersResource = Customers(process.env.YOUR_PAYSTACK_SECRET_KEY);

// Now create your first customer
const createNewCustomer = async () => {
    try {
        const customer = await customersResource.create({
            email: "example@gmail.com",
            first_name: "John",
            last_name: "Doe",
            phone: "+2348123456789",
        });

        if (customer?.status) {
            expect(customer?.data?.email).toBe("example@gmail.com");
        } else {
            throw new Error("An error occurred while creating a new customer");
        }
    } catch (error) {
        throw new Error("An error occurred while creating a new customer");
    }
};
```

### Contributing

-   To ensure consistent code style, please follow the in .editorconfig

### Tests

To run tests, add your Paystack test secret key to `jest.env.js` if the file doesn't exist create one in your root directory and add the following content:

```js
process.env.PAYSTACK_KEY = "YOUR_PAYSTACK_TEST_KEY";
```

. Now run:

```
npm test
```

If you are contributing to the repo, kindly update the necessary test file in `/test` or add a new one and ensure all tests are passed before sending a PR.

### Todo

-   Add types support for respones.
npm package: @obiscr/note
Description: It's a small tool to temporarily record something in the terminal.Of course, you can also record it permanently.
Author: wuzi
Latest version: 1.0.2

# Note

![npm](https://img.shields.io/npm/v/@obiscr/note) ![npm](https://img.shields.io/npm/dt/@obiscr/note)

It's a small tool to temporarily record something in the terminal.
Of course, you can also record it permanently.

# Build

If you need to run note on a machine without nodejs environment, you can:

+ [Download](https://github.com/obiscr/note/releases/latest) compiled files directly

If you have nodejs environment on your machine

```
npm install @obiscr/note -g
```

# Usage

```
# initialization
note -i

# check note
note

# add note
note -a key value

# edit note
note -e key newValue

# delete note
note -d key

# search note
note -s key
```

You can also `note -h` or `note -help` to show usage.

```
Usage: 
    note               --show all notes
    note -i            --initialization
    note -a key value  --add note
    note -d key        --delete note
    note -e key value  --edit note value
    note -s keyword    --search in notes
    note -h            --show help
```