Skip to content

Instantly share code, notes, and snippets.

View joadr's full-sized avatar
🏠
Working from home

Joaquin Diaz joadr

🏠
Working from home
View GitHub Profile
@joadr
joadr / main.js
Last active November 19, 2020 02:42
insomnia-plugin-pathname
/**
* For an url like this: https://api.somewebsite.com/v1/some_path
* this will return /v1/some_path
*/
module.exports.templateTags = [{
name: 'pathname',
displayName: 'pathname',
description: 'pathname',
async run (context) {