@marro-sh/core
v0.2.0
Published
The Marro contract: types, limits, path rules, content negotiation. Shared by the CLI and marro.sh.
Maintainers
Readme
@marro-sh/core
The shared contract behind marro.sh: the types, limits,
path rules, reserved names, MIME map and content negotiation that both the
@marro-sh/cli client and the marro
server consume.
It exists so the two surfaces cannot drift. A refusal means the same thing in a terminal as it does over HTTP, because both read these rules.
npm install @marro-sh/coreimport { CONTEXT_TYPES, FILE_LIMIT, isContextType, resolvePath } from "@marro-sh/core";
isContextType("notes.md"); // true
isContextType("clip.mp4"); // false
FILE_LIMIT; // 5 MB, in bytesYou probably want the CLI rather than this package. This one is published so the CLI can depend on a real version rather than a bundled copy.
Licence
MIT. See LICENSE.
