Catalog npm
Back to packageRELEASE DETAILS

0.4.1

npm

00-js

Node.js library for interacting with the 00 API.

00double zerodouble zero email api
Published9 Sept 2024
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

00 Node.js SDK

Community made SDK for interacting with the 00 (short for DoubleZero) API.

This package is inspired by the official Resend Node.js SDK.

This package is not officially maintained by 00.

Install

npm install 00-js
# or
pnpm add 00-js
# or
yarn add 00-js

Setup

First, you need to deploy your 00 API. You can do this by following the instructions here.

Then, create an API token in your dashboard.

import { DoubleZero } from '00-js';

const doubleZero = new DoubleZero({
  baseUrl: 'https://double-zero.example.com',
  token: 'your_api_token',
});

Usage

Sending emails is very simple.

await doubleZero.emails.send({
  from: 'you@example.com',
  to: 'user@gmail.com',
  subject: 'Test email from Node.js!',
  html: '<h1>Hello world from 00!</h1>',
});

License

MIT License

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@changesets/cli
Environment
{
  "local_name": "@changesets/cli",
  "alias": false,
  "peer_metadata": null
}
^2.27.7development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.14.10development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^8.1.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.5.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-sZmc/WBHoxgCMCJdRC6OeGm2rtKNHEWsp18ixR3hc9joV3mgyEB1+qOykgp8V/MQPhdSACMQdacfqhGKrYH+Gw==",
  "shasum": "c9dcc018bbdf8591e56420dd1f743b0a51c7776b",
  "tarball": "https://registry.npmjs.org/00-js/-/00-js-0.4.1.tgz",
  "fileCount": 7,
  "unpackedSize": 27333,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQC3P5n78fh4vClFUgVGekYleeGOD36PEo5DXWkHlDQG6QIgRdAoqmDWl0+QwjbG/bORoOaKnL198uGZTR2O16HELlU="
    }
  ]
}

Repository

PENDING
nic13gamer/00-node

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:17 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:32636062d5b00134757e50948727ef2da8783e0843f7e0ee73a4beaaf417c4d5

Other collected versions

0.4.08 Sept0.3.010 Aug0.2.024 Jul0.1.012 Jul0.0.112 JulView all collected versions →