Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@frctl/file

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

@frctl/file

Fractal file metadata format

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
12
1100%
Maintainers
1
Weekly downloads
 
Created
Source

File

Virtual file format for use in Fractal's filesystem parser/compiler.

Build Status NPM Version

Extends Vinyl with a set of additional properties and methods.

const File = require('@frctl/file');

const file = new File({
    base: '/components',
    path: '/components/patterns/_04-button--large.hbs',
    contents: new Buffer('<button class="button button--large">{{ buttonText }}</button>')
});

console.log(file.hidden);    // true
console.log(file.position);  // 4
console.log(file.name);   // 'button--large'

file.name = 'button--grande';

console.log(file.path); // /components/patterns/_04-button--grande.hbs

Install

Installation using Yarn is recommended:

yarn add @frctl/file

Requirements

@frctl/file requires Node >= v6.0

FAQs

Package last updated on 09 Jan 2017

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