Skip to content

Instantly share code, notes, and snippets.

@fson
Last active June 2, 2020 11:29
Show Gist options
  • Save fson/974862573c61520268e77b209e01878e to your computer and use it in GitHub Desktop.
Save fson/974862573c61520268e77b209e01878e to your computer and use it in GitHub Desktop.
terminal-link-repro
#!/usr/bin/env node
const terminalLink = require('terminal-link');
console.log();
console.log('# Link');
console.log(terminalLink("I'm a link, click me.", 'https://expo.fyi/manifest-url'));
console.log();
console.log('# URL:');
console.log("Here's a URL: https://expo.fyi/manifest-url");
console.log();
console.log('# Link that looks like a URL');
console.log(`Here's another link: ${terminalLink('https://expo.fyi/manifest-url', 'https://expo.fyi/manifest-url')}`);
console.log();
{
"name": "terminal-link-repro",
"version": "0.0.1",
"bin": "./index.js",
"license": "MIT",
"dependencies": {
"terminal-link": "^2.1.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment