Skip to content

Instantly share code, notes, and snippets.

@waako
Forked from zkat/index.js
Last active October 20, 2020 09:29
Show Gist options
  • Save waako/23d379d1c83095c8e2e0e7d522933881 to your computer and use it in GitHub Desktop.
Save waako/23d379d1c83095c8e2e0e7d522933881 to your computer and use it in GitHub Desktop.
npx is cool

Hi!

try passing the URL for this gist to npx.

{ "comments": false, "minified": true, "plugins": [ "minify-mangle-names", "transform-merge-sibling-variables", "transform-minify-booleans", "transform-remove-console" ], "presets": [ [ "@babel/preset-env", { "targets": { "ie": "11" } } ] ] }
#!/usr/bin/env node
// require('../lib/babel');
// npm which babel
// babel --version
console.log('yay gist')
{
"name": "anrt_shell_module",
"version": "1.0.0",
"description": "Provides es6 transpilation to js file(s).",
"bin": "./node_modules/.bin/babel --version",
"scripts": {
"which-version": "babel --version",
"test-version": "./node_modules/.bin/babel --version"
},
"author": "Mark Conroy",
"license": "GPL-2.0-or-later",
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/generator": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"babel-plugin-minify-mangle-names": "^0.5.0",
"babel-plugin-transform-merge-sibling-variables": "^6.9.4",
"babel-plugin-transform-minify-booleans": "^6.9.4",
"babel-plugin-transform-remove-console": "^6.9.4"
},
"dependencies": {}
}
{"name": "npx-is-cool", "version": "0.0.0", "bin": "./index.js", "scripts": { "test": "babel ./index.js --out-file ./index.min.js --verbose" }, "devDependencies": {"@babel/cli": "^7.10.5","@babel/core": "^7.11.4","@babel/generator": "^7.11.4","@babel/preset-env": "^7.11.0","babel-plugin-minify-mangle-names": "^0.5.0","babel-plugin-transform-merge-sibling-variables": "^6.9.4","babel-plugin-transform-minify-booleans": "^6.9.4","babel-plugin-transform-remove-console": "^6.9.4"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment