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

node-trello-api

v1.2.3

Published

A fully asynchronous node module to interact with Trello API with CommonJS.

Downloads

143

Readme

Alt test

A fully asynchronous node module for trello api in CommonJS.

/!\ => Report bugs on my Discord : Mattis#5249

Usage

Installation using NPM.

npm i node-trello-api 

Import and use

const trelloClient = require('node-trello-api')
const Trello = new trelloClient("API_KEY", "API_TOKEN")

Help : Go take your API informations here : https://trello.com/app-key

Exemples

Trello.getBoard(boardId).then(board => {
console.log(board);
});

(async () => {
	[...]
    const res = await Trello.createBoardList(boardId, "My list", {pos: "top"})
    resolve(res)
})

Documentation summary

Documentation

Official repository documentation : https://mattis44.github.io/node-trello-api/

IMPORTANT : If you want to get informations about your person, you can put "me" when ID is required. Exemple : Trello.getMemberBoards("me").then(boards => { console.log(boards) }

Actions

Used to request the actions of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-actions/

Applications

Used to request the applications of a member.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-applications/

Batch

Used to request multiple resources in a single request.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-batch/

Boards

Used to request the boards of a member.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-boards/

Cards

Used to request the cards of a board, a checklist, a list, or a member.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-cards/

Checklists

Used to request the checklists of a board, a card, or a member.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-checklists/

CustomFields

Used to request the custom fields of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-customfields/

Emojis

Used to request the emojis of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-emojis/

Enterprises

Used to request the enterprises of a member.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-enterprises/

Labels

Used to request the labels of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-labels/

Lists

Used to request the lists of a board, a card, a checklist, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-lists/

Members

Used to request the members of a board, a card, a checklist, a list, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-members/

Notifications

Used to request the notifications of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-notifications/

Plugins

Used to request the plugins of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-plugins/

Search

Used to request the search of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-search/

Tokens

Used to request the tokens of a member.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-tokens/

Webhooks

Used to request the webhooks of a board, a card, a checklist, a list, a member, or an organization.

Official documentation API : https://developer.atlassian.com/cloud/trello/rest/api-group-webhooks/