Skip to content

Commit

Permalink
importして使えるように改造しためう
Browse files Browse the repository at this point in the history
fixed #1
  • Loading branch information
sKawashima committed Mar 22, 2018
2 parents c65bdfa + b299088 commit 106c613
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# meu

めう、めうめうめう!

<font size="6">インストールはnpmで頼むめう!!!</font>
## Usage
```shell
$ meu めう、めうめう
Expand Down
3 changes: 3 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
const meu = require('./index.js')
console.log(meu(process.argv[process.argv.length - 1]))
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env node
console.log(process.argv[process.argv.length - 1] + 'めう!')
function meu(str){ return str + 'めう!' }
module.exports = meu
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "meu",
"version": "0.0.5",
"version": "0.0.9",
"description": "めう、めうめうめう。",
"main": "index.js",
"author": "sKawashima",
"license": "MIT",
"private": false,
"bin": {"meu": "./index.js"},
"bin": {
"meu": "./cli.js"
},
"repository": {
"type": "git",
"url": "https://github.com/sKawashima/meu.git"
Expand Down

0 comments on commit 106c613

Please sign in to comment.