TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

4 pointsby swimmadude66almost 6 years ago

1 comment

swimmadude66almost 6 years ago
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>