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

twlv

v0.0.2

Published

twelve

Downloads

10

Readme

twelve.js

A library to overcomplicate 12. Inspired by https://github.com/jackdcrawford/five .

wercker status

Usage

Require the module

twelve = require 'twlv'

In the browser

<script type="text/javascript" src="./lib/twlv.js" />

Basic 12

twelve() # 12

Addition

twelve() + twelve() # 24

Multiplication

twelve() * twelve() # 144

Division

twelve() / twelve() # 1

Before and After

twelve.before() # 11
twelve.after()  # 13

English

twelve.english() # Twelve

Different sorts of 12

twelve.upHigh()  # ¹²
twelve.downLow() # ₁₂
twelve.roman()   # XII

Different radices

twelve.binary()     # 1100
twelve.octal()      # 14
twelve.duodecimal() # 10
twelve.hex()        # c

Summation and Factorial

twelve.summation() # 78
twelve.factorial() # 479001600

12th something

twelve.month()      # 1 year
twelve.element()    # Mg
twelve.asteroid()   # Victoria
twelve.tarot()      # The Hanged Man
twelve.tarot.user() # J Guile
twelve.hexagram()   # 天地否
twelve.quran.sura() # يوسف

Twelve something

twelve.zodiac()           # ['Aries', 'Taurus', 'Gemini', 'Cancer', 'Leo', 'Virgo', 'Scorpio', 'Sagittarius', 'Capricorn', 'Aquarius', 'Pisces']
twelve.astrologicalSign() # ['Mars', 'Venus', 'Mercury', 'Moon', 'Sun', 'Mercury', 'Pluto', 'Jupiter', 'Saturn', 'Uranus', 'Neptune']
twelve.earthlyBranches()  # ['子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申', '酉', '戌', '亥']
twelve.chromaticScale()   # ['C', 'C♯', 'D', 'E♭', 'E', 'F', 'F♯', 'G', 'A♭', 'A', 'B♭', 'B']
twelve['十二天']()         # ['帝釈天', '火天', '焔魔天', '羅刹天', '水天', '風天', '毘沙門天', '伊舎那天', '梵天', '地天', '日天', '月天']
twelve['十二直']()         # ['建', '除', '満', '平', '定', '執', '破', '危', '成', '納', '開', '閉']
twelve.nidanas()          # ['無明', '行', '識', '名色', '六処', '触', '受', '愛', '取', '有', '生', '老死']
twelve.apostles()         # ['Andrew', 'Bartholomew', 'James of Alphaeus', 'James of Zebedee', 'John', 'Judas Iscariot', 'Jude Thaddeus', 'Matthew', 'Matthias', 'Philip', 'Simon Oeter', 'Simon the Zealot', 'Thomas']
twelve.heavenlyGenerals() # ['金毘羅', '伐折羅', '迷企羅', '安底羅', '頞儞羅', '珊底羅', '因達羅', '波夷羅', '摩虎羅', '真達羅', '招杜羅', '毘羯羅']
twelve.olympians()        # ['Zeus', 'Hera', 'Poseidon', 'Demeter', 'Athena', 'Apollo', 'Artemis', 'Ares', 'Aphrodite', 'Hephaestus', 'Hermes', 'Hestia', 'Dionysus']

Development

% npm start # build
% npm test  # test

License

MIT