-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
384 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
indent_style = tab | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
* text=auto | ||
*.js text eol=lf | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: CI | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
name: Node.js ${{ matrix.node-version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: | ||
- 20 | ||
- 18 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
const pkg = require('./package.json'); | ||
const yosay = require('.'); | ||
import meow from 'meow'; | ||
import yosay from './index.js'; | ||
|
||
require('taketalk')({ | ||
init(input, options) { | ||
console.log(yosay(input, options)); | ||
}, | ||
help() { | ||
console.log(` | ||
${pkg.description} | ||
const cli = meow(` | ||
Usage | ||
$ yosay <string> | ||
$ yosay <string> --maxLength 8 | ||
$ echo <string> | yosay | ||
Usage | ||
$ yosay <string> | ||
$ yosay <string> --maxLength 8 | ||
$ echo <string> | yosay | ||
Example | ||
$ yosay 'Sindre is a horse' | ||
${yosay('Sindre is a horse')}`); | ||
}, | ||
version: pkg.version | ||
Example | ||
$ yosay 'Sindre is a horse' | ||
${yosay('Sindre is a horse')} | ||
`, { | ||
importMeta: import.meta, | ||
}); | ||
|
||
console.log(yosay(cli.input[0], cli.flags)); |
Oops, something went wrong.