Install
yarn add file-genesis
Use
const path = ;const File = ;const gitignore = ` .DS_Store node_modules`; let filepathPlain = path;FilefilepathPlain;
Note: Prettier is used for formatting during creation
API
.plain()
, .symlink()
, .template()
This is used to specify the type and pass content
plain
File"/path/to/file.ext";
symlink
File"/path/to/file.ext";
template
let variables = replaceMe: "withThisValue" ;File"/path/to/file.ext";
Docs
- api-brainstorm
Multiple brainstorming attempts & old README content
- debug
Documented debugging
- resources
3rd party API's
- todo
Features & bugs by version
Goals
- consistent api for symlinks, plain UTF-8 files and templates
- interoperable with content-genesis