file2d ~master

simple tool to create embedable files


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

file2d Build Status

Simple tool to create embedable files in #dlang

Usage:

$ file2d someaudiofile.wav > mod.d

This will read someaudiofile.wav and write it as a ubyte array literal into a dlang compatible module file mod.d. mod.d will look like this:

module mod;

static immutable ubyte[1234] = [0x12, ...];

It's also possible to use stdin instead:

$ date | file2d > date.d

This will read the output of date and output it to date.d

Authors:
  • Stephan Dilly
Dependencies:
none
Versions:
0.0.1 2015-Oct-08
~master 2016-Feb-27
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 95 downloads total

Score:
0.9
Short URL:
file2d.dub.pm