Salta al contenuto

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  • #Optique 1.0.0을 릴리스했습니다.

    Mondo optique typescript cli deno node bun
    1
    0 Votazioni
    1 Post
    0 Visualizzazioni
    #Optique 1.0.0을 릴리스했습니다. Haskell의 optparse-applicative 스타일의 #TypeScript #CLI 파서가 필요해서 만들었습니다. 작은 타입 파서들을 조합하면 TypeScript가 결과 타입을 자동으로 추론합니다. 서브커맨드, 옵션 간 의존성, 셸 완성, 맨(man) 페이지 생성 등을 지원하고, #Deno, #Node.js, #Bun 등에서 동작합니다. 이번 버전에서는 @optique/env (환경 변수 폴백) 패키지와 @optique/inquirer (Inquirer.js 프롬프트 폴백) 패키지를 추가했습니다. API의 어색한 부분들도 많이 정리하고, 다섯 가지 셸의 완성 스크립트 버그도 한꺼번에 잡았습니다. JSR과 npm에서 설치하실 수 있습니다. https://github.com/dahlia/optique/discussions/796
  • #Optique 1.0.0 is out!

    Mondo bun cli deno node optique typescript
    1
    0 Votazioni
    1 Post
    0 Visualizzazioni
    #Optique 1.0.0 is out! If you build #CLI tools with #TypeScript, it might be worth a look. I started it because I wanted a TypeScript CLI parser that felt more like optparse-applicative than the usual builder-style APIs. You build up small typed parsers, compose them, and TypeScript infers the result. It handles subcommands, option dependencies, shell completion, and man pages, and it runs on #Deno, #Node.js, and #Bun. For 1.0 I added @optique/env, so env vars can fill in missing flags, and @optique/inquirer, so missing values can fall back to Inquirer.js prompts. I also cleaned up a lot of awkward API edges and fixed a long backlog of completion bugs across five shells. Packages are on JSR and npm. https://github.com/dahlia/optique/discussions/796
  • 0 Votazioni
    2 Post
    12 Visualizzazioni
    @grahamperrin can't reply on reddit, but as you know I have a similar setup. It will work, but expect classic Optimus problems : finger crossing Xorg won't be buggy, proprietary often buggy nvidia-driver mandatory, drivers mismatching... But it will probably work, assuming the user knows these caveats and how to solve them...
  • [Hongdown 0.2.0] is out!

    Mondo bun deno node rust markdown webassembly
    1
    0 Votazioni
    1 Post
    13 Visualizzazioni
    Hongdown 0.2.0 is out! Hongdown is an opinionated #Markdown formatter written in #Rust, and this release brings #WebAssembly support, so you can now use it as a library in #Node.js, #Bun, #Deno, and browsers. New features: Smart heading sentence case conversion with ~450 built-in proper nouns SmartyPants-style typographic punctuation ("straight" → “curly”) External code formatter integration for code blocks Directory argument support for batch formatting Try it in the browser: https://dahlia.github.io/hongdown/ Release notes: https://github.com/dahlia/hongdown/discussions/10
  • 0 Votazioni
    3 Post
    12 Visualizzazioni
    BotKitは、ActivityPubボットを作るためのTypeScriptフレームワークです。既存のMastodon/Misskeyボットとの違いは、ボット自体が独立したサーバーとして動作すること。プラットフォームのアカウントは不要です。 文字数制限もなければ、APIレート制限に悩まされることもありません。 bot.onMention = async (session, message) => { await message.reply(text`こんにちは、${message.actor}さん!`); }; フェデレーション、HTTP Signatures、配送キューといったActivityPub周りの処理はFedifyがすべて引き受けます。ボットのロジックを書くだけです。 DenoでもNode.jsでも動きます。 https://botkit.fedify.dev/ #BotKit #Fedify #ActivityPub #TypeScript #Deno #NodeJS