Skip to content

Instantly share code, notes, and snippets.

@phi-jp
Last active February 15, 2020 06:50
Show Gist options
  • Save phi-jp/ece89312935c7daa88833ad5cf073226 to your computer and use it in GitHub Desktop.
Save phi-jp/ece89312935c7daa88833ad5cf073226 to your computer and use it in GitHub Desktop.
npx 使ってみた

npx 使ってみた

% npx https://gist.github.com/phi-jp/ece89312935c7daa88833ad5cf073226
#!/usr/bin/env node
var fs = require('fs');
console.log('npx を使ってみた');
fs.writeFileSync('test.txt', 'npx 経由でファイル出力してみた!');
{
"name": "npx-demo",
"version": "0.0.1",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment