fixated

0.0.4 • Public • Published

Fixated

Fixed width text stream for node.js

What is it?

Easily create fixed width text stream/files with node.js

Install

npm install --save fixated

How?

var Fixated = require('Fixated');
 
var format = {
  firstName: 15,
  lastName: 15,
  address: 200,
};
 
var fixated = new Fixated(format);
fixated.pipe(require('fs').createWriteStream('./out.txt');
fixated.write({firstName: 'charlie', lastName: 'doe', address: '1st some road, some where'});
 
fixated.end();
 
// out.txt should contain one line:
// charlie        doe            1st some road, some where

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i fixated

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • saary