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

tanda

v1.0.1

Published

An isomorphic wrapper for Tanda's v2 API.

Downloads

26

Readme

tanda.js

Tanda for your JavaScript

Caution: This library is complete (probably), but has not been tested. If you come across any problems open an issue, or be a champ and bust out a pull request.

About

node-tanda is now an isomorphic library, which can be used both in the browser or with node.js. There are some differences with authentication, but there are (will be) handlers available for a couple of the standard ways to authenticate with the standard server architectures.

How to use

yarn add tanda, or npm install --save tanda.

There are a couple of chainable options which don't line up exactly with what the API spec shows. To enable show_costs on a call to the API, you should prepend .showCosts to the front on your call. E.g. tanda.rosters.showCosts.get(1);.

The chainable options available are:

  • show_costs => .showCosts
  • show_award_interpretation => .showAwardInterpretation
  • include_names => .includeNames

If the option is available in the API docs, it'll be available. If your IDE is worth it's weight, it should show it as an option for you.

Super Simple Startup

import Tanda from 'tanda';

const tanda = new Tanda({ authToken: '12345' });

tanda.rosters.get(1).then(rosters => console.log(rosters));
tanda.timesheets.showAwardInterpretation.current().then(timesheet => console.log(timesheet));

// etc, etc

Isomorphism

This library runs in both the client and the server. If you're using Webpack or Babel, you can really do whatever. If you're using older-school Node.js, a standard var Tanda = require ('tanda') should be fine. For the browser, there is a pre-made package you can use. If you download the browser script, from ./out, it will expose window.Tanda which you can use.

MIT Licence