# ilib-resbundler

> convert JSON type of resources to JS files

Latest version **1.1.0** (published 2022-02-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ilib-resbundler
pnpm add ilib-resbundler
yarn add ilib-resbundler
bun add ilib-resbundler
```

Provides the command `ilib-resbundler`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2022-02-23 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Goun Lee |
| Maintainers | goun |

## Links

- npm: https://www.npmjs.com/package/ilib-resbundler
- Repository: https://github.com/iLib-js/ilib-resbundler
- Homepage: https://github.com/iLib-js/ilib-resbundler#readme
- Issues: https://github.com/iLib-js/ilib-resbundler/issues
- npm.io page: https://npm.io/package/ilib-resbundler

## Dependencies (3)

- [uglify-js](https://npm.io/package/uglify-js.md) ^3.14.5
- [ilib-common](https://npm.io/package/ilib-common.md) ^1.0.1
- [options-parser](https://npm.io/package/options-parser.md) ^0.4.0

## Recent versions

- 1.1.0 (latest) — 2022-02-23
- 1.0.2 — 2022-02-09
- 1.0.1 — 2022-02-09
- 1.0.0 — 2022-02-08

## README

# ilib-resbundler
resbundler is a command-line utility that generates js files from json type of resources

Installation
------------
Use `npm install ilib-resbundler` or `yarn add ilib-resbundler` to install the scanner.

Then, make sure that node_modules/.bin is in your path.

If your app is packaged with npm or yarn and has a package.json, put the following in your
   "devDependencies" property:

 ```
    "ilib-resbundler": "^1.0.0",
 ````

Usage
------------

1. Include all data in one `js` file.   
Following command, Output fiile name would be `ilib-translation.js`
```
resbundler.js --assembly=assembled --compilation=compiled --resDir=resources --outDir=result
```
or
```
resbundler.js -a assembled -c compiled -r resources --o result
```

2. Generate `js` files per locale.   
Following command, Output file would be `ko-KR.js, es-ES.js`
```
resbundler.js --assembly=dynamic --compiled=compiled --resDir=resources --outDir=result --locales=ko-KR,es-ES
```
or
```
resbundler.js -a dynamic -c compiled -r resources -o result -l ko-KR,es-ES
```

Release Notes
-------------
### 1.1.0
Update option usage

### 1.0.1
Update to add excutable `resbundler` file that would install into the PATH

### 1.0.0
Initial release

---
_Source: https://npm.io/package/ilib-resbundler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
