Skip to content

Easily apply other module's string transform functions to stdio and text files.

Notifications You must be signed in to change notification settings

mk-pmb/txtrafo-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

txtrafo

Easily apply other module's string transform functions to stdio and text files.

Usage

from test/2nd-letter.js:

require('txtrafo')({
  sourceFilename: module.filename,
  trafoFunc: function (text) { return text.replace(/\w(\w)\w*/g, '$1'); },
  guessOutputFilename: function (fn) { return fn.slice(0, -3) + '.txt'; },
});

Known issues

  • CLI isn't implemented yet
  • needs more/better tests and docs

 

License

ISC

About

Easily apply other module's string transform functions to stdio and text files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published