Jump to content

Search the Community

Showing results for tags 'node'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Website URL


Jabber


Location


Interests

Found 5 results

  1. Hey, I've made my own translation workflow, as the existing ones which I could find didn't quite suit my needs or lacked in some aspects. Features: "Natural language" input Text auto correction, language auto correction Easy setup Configurable 100% free Preview: Dependencies: node.js >=7.6 Installation: Just run the following command in your terminal: $ npm i -g alfred-polyglot ...or (not recommended) you can download it directly from the GitHub releases page if you don't want to use npm. Note that if you would like to use the npm way in the future you will have to uninstall the workflow completely first. You can also go through the easy, but optional setup. Have fun! GitHub
  2. Hi all, I'm trying to run a node.js script with Alfred, using this workaround: http://remy.bach.me.uk/blog/2014/03/writing-alfred-workflows-in-node/ It seems to work to get scripts to run without modules, but when I try to use the npm 'fast-csv' module, running the Alfred workflow with my script gives me the error "Cannot find the module 'fast-csv'". I've installed 'fast-csv' globally, so I'm not sure what else to try. (The script runs correctly when using the terminal.) Any ideas? Thanks
  3. Download Here This Alfred Workflow will take the active Finder window and serve it up with Harp (http://harpjs.com) web server at localhost:9090. It even opens Safari to http://localhost:9090 for you.** Triggering the workflow while a Harp instance is already serving a Finder directory increment the port number by one (e.g. http://localhost:9091), allowing you to serve several different folders at the same time on your machine. Harp web server automatically preprocesses Jade, Markdown, EJS, CoffeeScript, Sass, LESS and Stylus and serves it as HTML, CSS & JavaScript—no configuration necessary. It even does the vendor prefixing for you. Prerequisites: Harp Web Server - Node (http://nodejs.org) - NPM (included with Node) Once you have installed Node, install Harp with npm install -g harp Harp Quick Start ** This is my use of AppleScript so by the time I got the Terminal window checking and port incrementing working I just put a simple 2 second delay before calling Safari. If Terminal isn't open and Safari is, depending on your machine it may take more than 2 seconds for Harp to initialize. Just hit the reload button in Safari. Or change it to wait a bit longer. Or if you are an AppleScript guru, fix it to wait until Harp is running, then call Safari. Feel free to modify the Applescript for whatever shell commands you may want to issue - I know Harp isn't the only Node based web server around.
  4. Hey everyone, here's one I can absolutely not figure out for myself: if have this very simple bash script called launcher.sh #!/bin/bash node="/usr/local/bin/node" ${node} test.js 127.0.0.1:8374 &> node-out.txt & and a quite simple node script called test.js require('easyimage').thumbnail({ src:"a.jpg", dst:"b.jpg", width:60, height:60 }).then( function(image) { console.log('success'); }, function (err) { console.log(err); }); If i call from the terminal node test.js or ./launcher.sh, then everything is fine (I get image a.jpg to be cropped and written to b.jpg), but if i trigger it through a script filter containing only ./launcher.sh, then i get this error: [Error: File not supported.] and I have tried with another less used npm package for test.js: var resizeCrop = require('resize-crop'); resizeCrop({ format: 'jpg', src: "a.jpg", dest: "b.jpg", height: 60, width: 60, gravity: "center" }, function(err, filePath){ if(err) console.log(err); else console.log("success"); } ); which throws a more verbose error when triggered from a script filter: events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:1001:11) at Process.ChildProcess._handle.onexit (child_process.js:792:34) Do you guys have any idea why it works from the terminal but not from alfred? On my real script, I'm writing/reading other files and i never have any issues with it...
  5. The Readme workflow opens the README.md of any npm module within its associated application. This is generally a Markdown file, so you will want a Markdown viewer. I use Marked 2. Here's a list of Markdown-related applications. This is incredibly handy if you're working with a lot of npm modules; I use it constantly--especially when fussing with a bunch of Grunt tasks. For the curious, it works by simply asking npm for the "readme" data of a module, saves it to a temp file, then opens it. Known Issues: No feedback if it can't find the module you're looking for. No autocompletion Current Version: v1.0 Dependencies: NodeJS & the internets Download: Packal / GitHub / Direct
×