1.0.0 ā€¢ Published 3 years ago

dimic v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

dimic

Node.js CLI to create pathmap index module from directory structure.

From

|-src
  |-assets
    |- font
      |- aldrich.woff
    |- image
      |- player.png
      |- enemy.png

šŸ‘‡ To

// src/assets/index.js
import mod_0 from "./font/aldrich.woff";
import mod_1 from "./image/player.png";
import mod_2 from "./image/enemy.png";
export default {
  font: {
    aldrich: mod_0,
  },
  image: {
    player: mod_1,
    enemy: mod_2,
  },
};

Requirements

Node.js v10.10.0+

Install

npm install dimic -g

Usage

dimic --[options]

Test

npm run test