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

@moovio/node

v1.2.2

Published

Node SDK for the Moov API and Dashboard

Downloads

27,711

Readme

Node SDK for Moov API

This SDK provides convenient configurations and methods for using the Moov API in a server-side Node.js environment.

Installation

npm install @moovio/node

Usage

Initialize the Moov client with your account ID and API key credentials. Get these from the Moov Dashboard.

import { Moov } from "@moovio/node";

const moov = new Moov({
  accountID: "...",
  publicKey: "...",
  secretKey: "...",
  domain: "...",
});
await moov.ping();

Generate OAuth tokens for Moov.js and Moov Drops using Moov.generateToken().

import { Moov, SCOPES } from "@moovio/node";

const moov = new Moov({
  accountID: "...",
  publicKey: "...",
  secretKey: "...",
  domain: "...",
});
const token = await moov.generateToken([SCOPES.ACCOUNTS_CREATE]);

See the /examples folder for more details.

Documentation

The node SDK is documented using JSDoc comments to annotate functions, methods, types, and enums. This allows us to provide autofill and inline context to developers, and is used to generate markdown files which are copied into our docs repo and exposed on docs.moov.io.

The following JSDoc tags should be included on any functions, methods, types, and enums that we want to expose to end users.

@summary - Short description that appears at the start of the section

@description - Longer description that will appear at start if no summary is provided.

@example - Used to include a code example of how a customer would implement this. Multiple examples can be used.

@param - Documents a parameter of a function or method.

@returns - What the function will return

@tag - The tag determines which markdown file the element will be included on.

@typedef - To document types like Account or Transfer. You can reference other types in your type definition.

@property - Used with the @typedef to document a propery of the type.

@enum - To document Enums

@private - To not include the in any public documentation for customers.

Documentation generation

To generate the documentation, run

npm run docs

The generation logic is in scripts/generateDocs.cjs. We parse the raw data produced by JSDoc and then run it through a set of handlebars templates in docs/templates. The final output is in docs/output.

Handlebars "helpers" do a lot of the custom documentation generation we require for our documentation website. See the calls to handlebars.registerHelper() in scripts/generateDocs.cjs for more information.

Troubleshooting and support

TBD

Prerequisite

Node.js minimum version of 14.17.0 is required.

Changelog

See CHANGELOG.md for details.

License

Apache 2.0. See LICENSE for details.

Contributing

Yes, please! Be sure to start a discussion or create an issue before submitting a pull request.