Skip to content

TS #32

Description

@nikivdev

Now

  • have better way to do parsing of args in scripts
  • mainWithError (below into 1 exportable function)
async function main() {
	try {
	} catch (error) {
		console.error(error)
	}
}

await main()
console.log("done")
// so it can be called like this in some script.ts
import {mainWithError} from "nikiv/utils"

await mainWithError() {
  throw new Error("some err")
}

// can this work with the `await main() in the nikiv/utils itself

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions