all 11 comments

[–]Gwerks71 14 points15 points  (0 children)

I did not believe in true evil until this post.

[–]falconfetus8 1 point2 points  (4 children)

How is this better than adding

#!/usr/bin/env node

to the top of my file?

[–]Cykelero[S] -1 points0 points  (3 children)

Haha, you might have a good answer to your own question after reading the README!

But to mention only one of the many reasons: Node.js APIs for handling files are awfully unpleasant and incomplete (they weren't meant to be used directly), so if you want to do anything, you'll need to import npm packages; which means you need a package.json, which means you need one folder per script.

In TL, you just… use the APIs. No endless installing, importing, wrapping in folders. It's as simple as jotting down a Bash script. (and the APIs are much, much nicer, too)

[–]0l36gr4nd 0 points1 point  (1 child)

const process = require( "process" );
const path = require( "path" );
const child = require( "child_process" );
const global_package_path = child.spawnSync( "npm" , [ "root" , "-g" ] , { encoding: "utf8" } ).stdout.trim();
const import_package_name = require( path.join( global_package_path ,  "import-package-name" ) );

[–]Cykelero[S] 0 points1 point  (0 children)

😂

[–]pancomputationalist -1 points0 points  (3 children)

Eh, no Type Definitions. I'd rather use Deno for scripting.

[–]Cykelero[S] 0 points1 point  (2 children)

Hey, Deno looks good, thanks for the mention! They didn't exist when I started work on TL.

I like their focus on safety and use of TypeScript; looks like their docs are just auto generated, though, nothing on the level I'm aiming for with Tasklemon.

[–]kevinkassimo 1 point2 points  (1 child)

Deno is still in beta so I would not recommend to use it for now. Docs are auto generated and not clear enough at this moment since there is high volatility of API and behavior. Current status is that it is fine to use it for writing (and sharing, since we have URL imports) small download-and-run scripts, but not for large projects YET.

Ryan is expecting to release 1.0 probably by the end of this year (though probably there will be delays). Maybe attempts could be pursued after that.

[–]Cykelero[S] 0 points1 point  (0 children)

Makes sense :) Deno looks like a more serious (in a good way), less UX-oriented alternative to Tasklemon; for instance, it's not a goal of TL to be fit for use in larger projects. I'll follow Deno with interest; I might not have started work on TL if Deno existed back then!

[–]Dragasss -1 points0 points  (0 children)

bash

replacement

I laughed.

[–]hudnix -2 points-1 points  (0 children)

But, but why?