Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
papb committed Oct 22, 2020
1 parent 65cb099 commit ee750a7
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 6 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
uses: actions/setup-node@v1
with:
node-version: 14.x
-
run: npm install
-
run: npm run lint
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [14.x, 12.x, 10.x]
exclude:
-
node-version: 14.x
os: ubuntu-latest
-
node-version: 10.x
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
-
uses: actions/checkout@v2
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
-
run: npm install
-
run: npm run ava
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
"engines": {
"node": ">=10"
},
"keywords": [
"tsv",
"json",
"string",
"table",
"matrix",
"convert",
"excel",
"typescript"
],
"scripts": {
"build": "del-cli dist && tsc",
"prepack": "npm run build",
Expand All @@ -22,7 +32,8 @@
"main": "dist/source",
"types": "dist/source",
"files": [
"dist/source"
"dist/source",
"!*.map"
],
"devDependencies": {
"@ava/typescript": "^1.1.1",
Expand All @@ -31,7 +42,7 @@
"del-cli": "^3.0.1",
"np": "^6.5.0",
"source-map-support": "^0.5.19",
"typescript": "^4.0.3",
"typescript": "~4.0.3",
"xo": "^0.34.1"
},
"ava": {
Expand Down
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tsv-json [![Build Status](https://travis-ci.com/papb/tsv-json.svg?branch=master)](https://travis-ci.com/papb/tsv-json)
# tsv-json ![Build Status](https://github.com/papb/tsv-json/workflows/CI/badge.svg) [![install size](https://packagephobia.com/badge?p=tsv-json)](https://packagephobia.com/result?p=tsv-json)

> Convert between TSV and JSON (`string[][]`)
Expand All @@ -8,6 +8,7 @@
* Zero dependencies
* Simple and to the point
* Written in TypeScript
* Handles double-quotes correctly


## Install
Expand Down Expand Up @@ -37,6 +38,11 @@ Handles tabs, newlines and double-quotes correctly.
Asserts the input is of the expected type (`string[][]` for `json2tsv`, `string` for `tsv2json`).


## Tip for Excel

If you copy any TSV generated by this package and paste directly on an Excel cell, Excel will automatically parse the TSV and fit everything in the appropriate rows and columns, starting at the cell highlighted by you.


## Related

* [tsv-json-cli](https://github.com/papb/tsv-json-cli) - CLI for this module
Expand Down

0 comments on commit ee750a7

Please sign in to comment.