Socket
Book a DemoInstallSign in
Socket

file-genesis

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-genesis

Generate raw assets for other generators

0.6.7
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

logo

Build Status

Install

yarn add file-genesis

Use

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

API

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);

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

FAQs

Package last updated on 12 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.