1.0.1 • Published 1 year ago

rammer v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Rammer

A command-line tool that allows you to put an entire folder into a single class file and retrieve the contents of each file using the get method.
CICD

Usage

to TS

    $ npx rammer --type-ts ./example ./example.ts

to JS

  $ npx rammer --type-js ./example ./example.js

to txt

  $ npx rammer --type-txt ./example ./example.txt

example

Before

example
├── floor
│   └── floor.tpl
└── sample.tpl

Execute

$ npx rammer@latest --type-ts ./example after-sample.ts

Will be able to load

import { AfterSample } from "./after-sample";

// Get the contents of the original file.
// Argument types are limited to file names.
const res = AfterSample.get('floor/floor.tpl');

unrammer

You can also simply restore the files. However, it is limited to text files converted by the "--type-txt" option.

Restoration command sample

  $ npm rammer@latest --decode ./example.txt ./newly
1.0.1

1 year ago

1.0.0

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago