You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@ui5/fs

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui5/fs

UI5 Tooling - File System Abstraction


Version published
Weekly downloads
195K
increased by6.66%
Maintainers
3
Created
Weekly downloads
 

Package description

What is @ui5/fs?

@ui5/fs is a file system abstraction library designed for the UI5 framework. It provides utilities for managing and processing file resources in a consistent and efficient manner, which is particularly useful for building and developing UI5 applications.

What are @ui5/fs's main functionalities?

Resource Management

This feature allows you to create and manage resources. The code sample demonstrates how to create a resource and retrieve its path.

const { resourceFactory } = require('@ui5/fs');
const resource = resourceFactory.createResource({
  path: '/path/to/resource',
  string: 'content of the resource'
});
console.log(resource.getPath()); // Output: /path/to/resource

Resource Collections

This feature allows you to create collections of resources and perform operations on them. The code sample demonstrates how to create a collection and retrieve a resource by its path.

const { resourceFactory } = require('@ui5/fs');
const resource1 = resourceFactory.createResource({ path: '/path/to/resource1', string: 'content1' });
const resource2 = resourceFactory.createResource({ path: '/path/to/resource2', string: 'content2' });
const collection = resourceFactory.createResourceCollection({
  resources: [resource1, resource2]
});
collection.byPath('/path/to/resource1').then(resource => console.log(resource.getString())); // Output: content1

Resource Filtering

This feature allows you to filter resources based on certain criteria. The code sample demonstrates how to filter resources by their path.

const { resourceFactory } = require('@ui5/fs');
const resource1 = resourceFactory.createResource({ path: '/path/to/resource1', string: 'content1' });
const resource2 = resourceFactory.createResource({ path: '/path/to/resource2', string: 'content2' });
const collection = resourceFactory.createResourceCollection({
  resources: [resource1, resource2]
});
const filteredResources = collection.filter(resource => resource.getPath().includes('resource1'));
filteredResources.forEach(resource => console.log(resource.getPath())); // Output: /path/to/resource1

Other packages similar to @ui5/fs

Readme

Source

UI5 icon

ui5-fs

UI5-specific file system abstraction
Part of the UI5 Tooling

REUSE status Build Status npm Package Version Coverage Status

Documentation

UI5 FS documentation can be found here: sap.github.io/ui5-tooling

The UI5 FS API Reference can be found here: @ui5/fs

Contributing

Please check our Contribution Guidelines.

Support

Please follow our Contribution Guidelines on how to report an issue.

Please report issues in the main UI5 Tooling repository.

Release History

See CHANGELOG.md.

Keywords

FAQs

Package last updated on 19 Jan 2023

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc