posix-expand

A POSIX-like expand in JavaScript

Usage no npm install needed!

<script type="module">
  import posixExpand from 'https://cdn.skypack.dev/posix-expand';
</script>

README

posix-expand

A POSIX-like expand in JavaScript.

NPM

build status Build status NPM version

Sauce Test Status

CLI

expand tabs.file > spaces.file

API

var Expand = require('posix-expand')

var expand = new Expand(argv)

Returns a transform stream. argv can be:

  • _: An array of arguments, file inputs; such as expand one.js two.js three.js
  • fs: Override the file system with a node/io compatible fs.
  • t: Number of tab stops. Default is 8.

license

(c) 2015 Kyle Robinson Young. MIT License