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

nahuales

v1.0.4

Published

Module to get the respective mayan sign of the tzolkin calendar of a gregorian date.

Downloads

20

Readme

Nahuales

Build Status

Module to get the respective Mayan sign of the Tzolkin calendar of a gregorian calendar date.

The Tzolkin calendar is based on 20 signs called "Nahuales" and weeks of 13 days, we have used 1983-09-16 (YYYY-mm-dd) as an init date which corresponds to 1 B'atz', and the calendaric count moves 1 row down each day which means that if we want to know the nahual for 1983-09-20 which would be 4 days after the init date, the nahual would be 5 Tz'ikin, there would be a moment where the 13 week wont match the 20 signs so the cycle of 13 would start again in 1 and both cycle counts wont match until we reach 260 days (13*20) and the whole nahual count will start.

The Nahual names may vary depending on the region and variant of the Mayan language, the names used in this module are the post-conquest Guatemalan highland calendar names.

You can find more information about Tzolkin Calendar here, or if you want more detailed information there is a book called "Chʹumilal wuj".

Tzolkin Calendar table

| Nahual name | | | | | | | | | | | | | | |----------|----|----|----|----|----|----|----|----|----|----|----|----|----| | B'atz' | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | | E | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | | Aj | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | | Ix | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | | Tz'ikin | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | | Ajmak | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | | No'j | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | | Tijax | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | | Kawoq | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | | Ajpu | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | | Imox | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | | Iq' | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | | Aq'ab'al | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | | K'at | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | | Kan | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | | Kame | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | | Kej | 4 | 11 | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | | Q'anil | 5 | 12 | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | | Toj | 6 | 13 | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | | Tz'i' | 7 | 1 | 8 | 2 | 9 | 3 | 10 | 4 | 11 | 5 | 12 | 6 | 13 |

Usage

$ npm install nahuales

This module accepts a date and will give you the exact nahual as an object.

On your project:

const newNahual = require('nahuales');
const date = new Date('1983-09-16');
const myNahual = newNahual.nahual(date);
console.log(myNahual);

It will print this on your terminal:

{ day: 1, nahual: 'B\'atz\'' }