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

x/johnny_decimal/models/location_core.ts>LocationCore

Utilities for interacting with a Johnny Decimal filing system.
Go to Latest
class LocationCore
import { LocationCore } from "https://deno.land/x/johnny_decimal@1.0.3/models/location_core.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
isAreaFilename
isAreaId
isCategoryFilename
isCategoryId
isItemFilename
isItemId
isLocationFilename
isLocationId
parseId
regex
readonly
TYPE