1.0.1 • Published 3 years ago

rammer v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years 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

3 years ago

1.0.0

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago