TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Jsonnet-CLI, a global NPM module for compiling jsonnet

4 点作者 swimmadude66将近 6 年前

1 comment

swimmadude66将近 6 年前
For those of you that haven&#x27;t heard of jsonnet (like me 3 days ago), its an extension of JSON which can use logic and functions to template out data. I was exposed to it when our company upgraded our DroneCI instance to 1.0, which requires a new yaml config format. Their docs recommended using jsonnet, but for the life of me, I could not find a way to compile that jsonnet on windows. All my searches turned up instructions to brew install jsonnet, or libraries to handle the jsonnet in code. I decided to use one of those libraries (thanks @rbicker!) and create a simple CLI tool that would work across platforms.<p>I hope you like it, and here are the relevant links to the libraries and technologies used:<p><a href="https:&#x2F;&#x2F;jsonnet.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jsonnet.org&#x2F;</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;rbicker&#x2F;node-jsonnet" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rbicker&#x2F;node-jsonnet</a><p><a href="https:&#x2F;&#x2F;drone.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;drone.io&#x2F;</a>