create-fs
The file system used by create
. 🗄️
The separate create-fs
package includes types and utility functions for the file system used in Runtime > Creations > files
.
This file system is a simplified abstraction over the lower-level APIs in Node.js and other platforms. APIs and data are optimized for simplicity and ease of use, rather than completeness.
For example, given a structure like:
create-fs
would represent that structure with an object like:
APIs
intakeFromDirectory
Given a directory path, reads in the directory as to the create-fs
directory structure.
Parameters:
directoryPath: string
(required)settings: IntakeFromDirectorySettings
(optional):
exclude
An optional regular expression to filter out directory children.
For example, you may want to avoid .git
and node_modules
directories:
Made with 💝 in Boston by
Josh Goldberg.