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

nxus-asana

v1.0.1

Published

A Nxus module for communicating with the Asana API using Personal tokens.

Downloads

16

Readme

Nxus Asana

Build Status

A Nxus module for interacting with the Asana API. Built on top of the Asana API module.

Installation

> npm install nxus-asana --save

Usage

The module exposes the API client through a series of Nxus responders. First, you'll need to enter your personal access token in the package.json config:

'config': {
  'asana-api': {
    'token': 'your token goes here'
  }
}

or using an env variable ASANA_PERSONAL_TOKEN.

Once the token is present, you can access any of the API endpoints using the corresponding provider:

app.get('asana-api').users().then((Users) => {Users.findbyId(...)})

For how to use the API, and which methods are provided by each endpoint, take a look at the Asana API docs or the Asana NPM Module.

API

Module

src/index.js:39-144

A Nxus module for interacting with the Asana API. Built on top of the Asana API module.

Configuration

The module exposes the API client through a series of Nxus responders. First, you'll need to enter your personal access token in the package.json config:

'config': {
  'asana-api': {
    'token': 'your token goes here'
  }
}

or using an env variable ASANA_PERSONAL_TOKEN.

Examples

app.get('asana-api').users().then(...)

attachments

src/index.js:136-138

Returns the attachments endpoint

Returns function A wrapper for the Asana API Attachments endpoint.

events

src/index.js:96-98

Returns the events endpoint

Returns function A wrapper for the Asana API Events endpoint.

me

src/index.js:88-90

Returns the current Asana user

Returns Object The current user's object.

projects

src/index.js:64-66

Returns the projects endpoint

Returns function A wrapper for the Asana API Projects endpoint.

stories

src/index.js:128-130

Returns the stories endpoint

Returns function A wrapper for the Asana API Stories endpoint.

tags

src/index.js:120-122

Returns the tags endpoint

Returns function A wrapper for the Asana API Tags endpoint.

tasks

src/index.js:72-74

Returns the tasks endpoint

Returns function A wrapper for the Asana API Tasks endpoint.

teams

src/index.js:104-106

Returns the teams endpoint

Returns function A wrapper for the Asana API Teams endpoint.

users

src/index.js:80-82

Returns the users endpoint

Returns function A wrapper for the Asana API Users endpoint.

workspaces

src/index.js:112-114

Returns the workspaces endpoint

Returns function A wrapper for the Asana API Workspaces endpoint.