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