Skip to content
Myr

init

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sindre Sorhus · committed by Sindre Sorhus · the first commit · Browse files · 9 files+243 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+243 added−0 removed

  • other:+243 added−0 removed

9 files+243 added−0 removed

added:.editorconfig+15 added
1root = true23[*]4indent_style = tab5end_of_line = lf6charset = utf-87trim_trailing_whitespace = true8insert_final_newline = true910[{package.json,*.yml}]11indent_style = space12indent_size = 21314[*.md]15trim_trailing_whitespace = false
added:.gitattributes+1 added
1* text=auto
added:.gitignore+1 added
1node_modules
added:.travis.yml+4 added
added:index.js+61 added
added:license+21 added
1The MIT License (MIT)23Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)45Permission is hereby granted, free of charge, to any person obtaining a copy6of this software and associated documentation files (the "Software"), to deal7in the Software without restriction, including without limitation the rights8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell9copies of the Software, and to permit persons to whom the Software is10furnished to do so, subject to the following conditions:1112The above copyright notice and this permission notice shall be included in13all copies or substantial portions of the Software.1415THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN21THE SOFTWARE.
added:package.json+46 added
added:readme.md+71 added
added:test.js+23 added
1import test from 'ava';2import fn from './';34test('execa()', async t => {5 const {stdout} = await fn('echo', ['foo']);6 t.is(stdout, 'foo');7});89test('buffer', async t => {10 const {stdout} = await fn('echo', ['foo'], {encoding: null});11 t.true(Buffer.isBuffer(stdout));12 t.is(stdout.toString(), 'foo');13});1415test('stripEof option', async t => {16 const {stdout} = await fn('echo', ['foo'], {stripEof: false});17 t.is(stdout, 'foo\n');18});1920test('execa.shell()', async t => {21 const {stdout} = await fn.shell('echo foo');22 t.is(stdout, 'foo');23});