0.0.10 • Published 10 months ago

@slimplate/filesystem v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

filesystem

This server-side content manager allows for efficient management and retrieval of content. It utilizes caching to improve performance and supports post-processing of data based on defined field types.

constructor(collection, collectionName, basePath = '.') // Initializes a content manager with the specified collection, collection name, and base path.
list(grabItems = false) // Retrieves a list of filenames that match the files pattern defined in the collection. If grabItems is true, it also retrieves the content of each file as items.
get(filename) // Retrieves a single article based on the filename. It reads the file content, extracts metadata using gray-matter, and performs post-processing on the data.
0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago