Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/johnny_decimal/models/location_core.ts>LocationCore

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