@feature-sliced/filesystem
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@feature-sliced/filesystem

npm version minzipped package size

A set of utilities for locating and working with FSD roots in the file system.

This project is intended for developers of tooling for Feature-Sliced Design.

Installation

pnpm add @feature-sliced/filesystem
npm install --save @feature-sliced/filesystem

Type definitions are built in 😎.

Usage

import { locateInFsdRoot } from "@feature-sliced/filesystem";

console.log(
  locateInFsdRoot("/home/ubuntu/frontend/src/pages/home/ui/HomePage.tsx"),
);
// {
//   fsdRoot: "/home/ubuntu/frontend/src",
//   layer: "pages",
//   slice: "home",
//   segment: "ui",
// }

Package Sidebar

Install

npm i @feature-sliced/filesystem

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

22.3 kB

Total Files

12

Last publish

Collaborators

  • illright
  • martis
  • sergeysova