# @sap-ux/ui5-library-writer

> Writer module to generate a new ui5 library

Latest version **1.0.24** (published 2026-10-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @sap-ux/ui5-library-writer
pnpm add @sap-ux/ui5-library-writer
yarn add @sap-ux/ui5-library-writer
bun add @sap-ux/ui5-library-writer
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.24 |
| Published | 2026-10-16 |
| First published | 2023-06-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=22.x |
| Dependencies | 8 |
| Unpacked size | 70.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Maintainers | tqueck, kranthie.sap, sap_extncrepos, sap-ospo-admin, devinea |

## Links

- npm: https://www.npmjs.com/package/@sap-ux/ui5-library-writer
- Repository: https://github.com/SAP/open-ux-tools
- Issues: https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-library-writer
- npm.io page: https://npm.io/package/@sap-ux/ui5-library-writer

## Dependencies (8)

- [ejs](https://npm.io/package/ejs.md) 3.1.10
- [lodash](https://npm.io/package/lodash.md) 4.18.1
- [mem-fs](https://npm.io/package/mem-fs.md) 2.1.0
- [semver](https://npm.io/package/semver.md) 7.8.5
- [i18next](https://npm.io/package/i18next.md) 26.3.6
- [mem-fs-editor](https://npm.io/package/mem-fs-editor.md) 9.4.0
- [@sap-ux/ui5-config](https://npm.io/package/@sap-ux/ui5-config.md) 1.0.10
- [@sap-ux/project-access](https://npm.io/package/@sap-ux/project-access.md) 2.3.1

## Recent versions

- 1.0.24 (latest) — 2026-10-16
- 1.0.23 — 2026-10-08
- 1.0.22 — 2026-10-06
- 1.0.21 — 2026-09-22
- 1.0.20 — 2026-09-11
- 1.0.19 — 2026-08-25
- 1.0.18 — 2026-08-25
- 1.0.17 — 2026-08-19
- 1.0.16 — 2026-08-05
- 1.0.15 — 2026-07-28
- 1.0.14 — 2026-07-23
- 1.0.13 — 2026-07-22
- 1.0.12 — 2026-07-21
- 1.0.11 — 2026-07-03
- 1.0.10 — 2026-07-03
- … 251 more at https://npm.io/package/@sap-ux/ui5-library-writer/versions

## README

[![Changelog](https://img.shields.io/badge/changelog-8A2BE2)](https://github.com/SAP/open-ux-tools/blob/main/packages/ui5-library-writer/CHANGELOG.md) [![Github repo](https://img.shields.io/badge/github-repo-blue)](https://github.com/SAP/open-ux-tools/tree/main/packages/ui5-library-writer)

# [`@sap-ux/ui5-library-writer`](https://github.com/SAP/open-ux-tools/tree/main/packages/ui5-library-writer)

Easy to use Reuse Library files writer for use within Yeoman generator and other prompting libraries. 


## Installation
Npm
`npm install --save @sap-ux/ui5-library-writer`

Yarn
`yarn add @sap-ux/ui5-library-writer`

Pnpm
`pnpm add @sap-ux/ui5-library-writer`

## Usage


Calling the `generate` function
```javascript
import { generate } from '@sap-ux/ui5-library-writer'
import { join } from 'path';

const exampleWriter = async () => {

  const reuseLibConfig = {
    libraryName: 'myUI5Library';
    namespace: 'com.myorg';
    framework: 'SAPUI5'; // SAPUI5 | OpenUI5
    frameworkVersion: '1.102.19';
    author: 'UX Tools';
    typescript: false;
  };

  const projectDir = join(__dirname, 'testLibs');
  const fs = await generate(join(projectDir), appConfig);
  return new Promise((resolve) => {
      fs.commit(resolve); // When using with Yeoman it handle the fs commit.
  });
}

// Calling the function
await exampleWriter();

```

## Keywords
SAP Reuse Library

---
_Source: https://npm.io/package/@sap-ux/ui5-library-writer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
