Socket
Book a DemoInstallSign in
Socket

babel-plugin-isotropy-filesystem

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-isotropy-filesystem

Babel plugin for transforming to lib-fs

0.0.10
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
4
Weekly downloads
 
Created
Source

Isotropy Babel Plugin for FS

This module is a babel plugin that transpiles array operations into corresponding filesystem operations. It uses isotropy-ast-analyzer-filesystem for AST analysis.

This is part of the isotropy framework (www.isotropy.org).

Include the plugin in .babelrc file.

Plugin configuration:

plugins: [
  [
    "transform-to-isotropy-fs",
    {
      projects: [
        {
          dir: "src/fs",
          modules: [
            {
              source: "my-fs",
              locations: [{ name: "docs", path: "/home/docs" }]
            }
          ]
        }
      ]
    }
  ]
]

projects:
dir: Specify the root of the project.
modules:
source: Points to the fs file.
locations:
name: The name used to access the path specified alongside.
path: The path at which the actual filesystem operations will take place.

Example:

import myFs from "./my-fs";

async function getFiles() {
  // return list of files in /home/docs
  return myFs.docs
}

FAQs

Package last updated on 03 Nov 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

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.