Skip to main content
Module

x/johnny_decimal/mod.ts>LocationCore

Utilities for interacting with a Johnny Decimal filing system.
Go to Latest
class LocationCore
Re-export
import { LocationCore } from "https://deno.land/x/johnny_decimal@1.1.1/mod.ts";

Examples

const location = new LocationCore({ name: "11.11 MyItem" }); location.areaId === "10-19"; // derived from name location.categoryId === "11";// derived from name location.itemId === "11.11";// derived from name location.name === "MyItem";// derived from name

Constructors

new
LocationCore(unnamed 0: { name: string; path?: string; })

Properties

readonly
area: string
readonly
optional
category: string
readonly
depth: LocationType
readonly
id: string
readonly
optional
item: string
readonly
name: string
readonly
path: string
toString: () => string

Static Properties

format: { areaId; categoryId; itemId; }
isAreaFilename
isAreaId
isCategoryFilename
isCategoryId
isItemFilename
isItemId
isLocationFilename
isLocationId
parseId
regex
readonly
TYPE