Skip to content
Create tinyurl/redirection service with ease.
Branch: master
Clone or download
dependabot and amio Bump tap from 12.6.0 to 12.6.1 (#44)
Bumps [tap](https://github.com/tapjs/node-tap) from 12.6.0 to 12.6.1.
<details>
<summary>Commits</summary>

- [`1871736`](tapjs/node-tap@1871736) 12.6.1
- [`066f159`](tapjs/node-tap@066f159) updates for npm audit --fix
- [`ad3bed4`](tapjs/node-tap@ad3bed4) Passes `-r ts-node/register` argument to node
- [`4645ecf`](tapjs/node-tap@4645ecf) Fix font-family typo
- See full diff in [compare view](tapjs/node-tap@v12.6.0...v12.6.1)
</details>
<br />

[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=tap&package-manager=npm_and_yarn&previous-version=12.6.0&new-version=12.6.1)](https://dependabot.com/compatibility-score.html?dependency-name=tap&package-manager=npm_and_yarn&previous-version=12.6.0&new-version=12.6.1)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

</details>
1
Latest commit f8ba5ff Mar 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Create config.yml May 27, 2018
bin
example
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
now.json
ocelot.jpg
package-lock.json
package.json Bump supertest from 3.4.2 to 4.0.0 (#41) Mar 13, 2019

README.md

now-go npm-version install-size

Create tinyurl/redirection service with ease.


Now go, let the legend come back to life!

Features

  • Lightweight tinyurl service (~50 sloc).
  • Three types of routes:
    • URL: redirect to an url
    • TEXT: echo a string
    • FUNCTION: accepts req argument, returns URL/TEXT routes
  • Deploy to now.sh with one command.

Quick Start

  • cli

    npm i -g now-go
    now-go -c path/to/config.json
  • programmatically

    const go = require('now-go')
    const config = require('./path/to/config.json') // routes config
    
    go(config)  // Start server on port 3000

Example configs

go-config.json

{
  // 302 redirection
  "/": "https://example.com",

  // echo text
  "/tag": "Now go, let the legend come back to life!",

  // "*" is a special route for unmatched path
  "*": "Yet another tinyurl service."
}

go-config.js

// redirect everything to new-example.com
module.exports = {
  "*": (req) => `https://new-example.com${req.url}`
}

Live Demo

License

MIT © Amio

You can’t perform that action at this time.