Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/array-tabular
https://github.com/ruanyl/array-tabular
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/array-tabular
- Owner: ruanyl
- License: mit
- Created: 2015-09-19T20:10:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T19:38:06.000Z (over 9 years ago)
- Last Synced: 2024-11-05T14:55:47.367Z (2 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
array-tabular
========
[![build status](https://secure.travis-ci.org/ruanyl/array-tabular.svg)](http://travis-ci.org/ruanyl/array-tabular)
[![NPM version](https://badge.fury.io/js/array-tabular.svg)](http://badge.fury.io/js/array-tabular)array tabular
## Installation
This module is installed via npm:
``` bash
$ npm install array-tabular
```## Example Usage
``` js
var arrayTabular = require('array-tabular');
arrayTabular(['aa', 'bbb', 'cccc']).before(); // [' aa', ' bbb', 'cccc']
arrayTabular(['aa', 'bbb', 'cccc']).after(); // ['aa ', 'bbb ', 'cccc']arrayTabular(['aa', 'bbb', 'cccc']).before('*'); // ['**aa', '*bbb', 'cccc']
arrayTabular(['aa', 'bbb', 'cccc']).after('*'); // ['aa*', 'bbb*', 'cccc']
```