Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume_langdata/deps.ts

A Lume plugin for multi-language websites.
Latest
import * as lumeLangdata from "https://deno.land/x/lume_langdata@v2.0.6/deps.ts";

Namespaces

Utilities for dealing with Date objects.

Utilities for working with OS-specific file paths.

parse and stringify for handling YAML encoded data.

Functions

Get number of the day in the year

Calculate difference between two dates.

Format date using format string

Parse date from string using format string

Parse a date to return a IMF formatted string date RFC: https://tools.ietf.org/html/rfc7231#section-7.1.1.1 IMF is the time format to use when generating times in HTTP headers. The time being formatted must be in UTC for Format to generate the correct format.

Get number of the week in the year (ISO-8601)

get an array with all the language codes supported

Get the writing direction of the language. "rtl" or "ltr".

Check if the language code is valid.

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

Convert a glob string to a regular expression.

Test whether the given string is a glob

Like join(), but doesn't collapse "**/.." when globstar is true.

Like normalize(), but doesn't collapse "**/.." when globstar is true.

Parses content as single YAML document.

Same as parse(), but understands multi-document sources. Applies iterator to each document if specified, or returns array of documents.

Serializes object as a YAML document.

Interfaces

A parsed path object generated by path.parse() or consumed by path.format().