monthstring

Obtenha o nome e o número do mês atual. Ou obtenha o nome do mês para um determinado número.

Usage no npm install needed!

<script type="module">
  import monthstring from 'https://cdn.skypack.dev/monthstring';
</script>

README

Transformer from numeric months to string.

Choose the name and number of the current month. Or get the name of the month for a given number.

Example

import { monthString } from "monthstring";

console.log(monthString("pt", 1));
console.log(monthString("en", 1));

/*
Returns:
Janeiro
January
*/