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 🙏

© 2024 – Pkg Stats / Ryan Hefner

yoomoney-sdk

v1.5.5

Published

⭐ Typed YooMoney Wallet SDK for NodeJS. Supported API's: Auth, Wallet & Notifications

Downloads

141

Readme

YooMoney SDK

Типизированный SDK для API YooMoney для NodeJS

Test Status Downloads last commit codecov GitHub yoomoney-sdk Known Vulnerabilities Quality npm license MIT Size

🍬 Почему именно эта библиотека?

  1. Полная. Покрывает следующие API:
  2. Простая. на каждое API всего 1 класс
  3. Надёжная. Библиотека написана на TypeScript и покрыта тестами.
  4. Безопасная. У библиотеки всего 2 зависимости, и она постоянно сканируется Code QL и Snyk на наличие уязвимостей.

📦 Установка

  • Используя npm
    npm i yoomoney-sdk
  • Используя Yarn
    yarn add yoomoney-sdk
  • Используя pnpm
    pnpm add yoomoney-sdk

🛠️ Использование

  1. ⚙️ Список методов
  2. 🦄 Примеры
  3. 🧑‍⚖️ Лицензия - MIT

Обработка ошибок

Если вызов метода API возвращает ошибку (то-есть есть поле error в ответе), то библиотека кидает ошибку YMApiError, которая содержит поля:

  • code - Значение поля error в ответе
  • response - Ответ полностью

Получение личного токена

# Клонируем репозиторий
git clone https://github.com/AlexXanderGrib/yoomoney-sdk.git

# Заходим в папку
cd yoomoney-sdk

# Устанавливаем зависимости
npm install

# Собираем библиотеку
npm run build

# Запускаем скрипт
node examples/4-get-token.js

Использование

# .env
YOOMONEY_TOKEN=4100117723869225.C277E77...
// index.js
const { API } = require("yoomoney-sdk");
const { config } = require("dotenv");

// Подгружаем файл .env
config();

const api = new API(process.env.YOOMONEY_TOKEN);

api.accountInfo().then((info) => console.log(info));

Лицензия

Проект распространяется под лицензией MIT. Смотрите LICENSE.txt

FOSSA Status

❤️ Содействие (Contributing)

Что делаем?:

  1. ⁉️ Не стесняемся писать Issue
  2. 🛠️ Если хотите что-то поправить следуйте гайду CONTRIBUTING.md
  3. 💸 Донатим 👉 https://sobe.ru/na/yoomoney_sdk
  4. 🌟 Ставим звёздочки, если библиотека понравилась.

🙋 Поддержка

Библиотека - маленькая, я отвечаю быстро. Не стесняйтесь писать Issue, даже если кажется что они глупые. Если что, можете писать в

Telegram: @AlexXanderGrib

Интересует приём и отправка P2P платежей по РФ на NodeJS?

У нас есть точно такое-же типизированное SDK для QIWI 👉 github.com/AlexXanderGrib/node-qiwi-sdk