https://github.com/gbaptista/fnx-hello-world
A tiny Hello World example for the fnx Package Manager.
https://github.com/gbaptista/fnx-hello-world
Last synced: 6 months ago
JSON representation
A tiny Hello World example for the fnx Package Manager.
- Host: GitHub
- URL: https://github.com/gbaptista/fnx-hello-world
- Owner: gbaptista
- Created: 2021-12-05T11:56:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-06T01:05:02.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T13:50:30.945Z (8 months ago)
- Language: Fennel
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World
A tiny Hello World example for the [fnx](https://github.com/gbaptista/fnx) Package Manager.
Create your first `.fnx.fnl` file in some directory:
```fennel
{:name "my-first-package"
:version "0.0.1":dependencies {
:hello-world {:fennel/fnx {:git/github "gbaptista/fnx-hello-world"}}}}
```## Install and validate
```sh
fnx dep installfnx --eval "((. (require :hello-world) :try))"
```## Use the package in your code
Create a `demo.fnl` file:
```fennel
(local hello (require "hello-world"))(print (hello.try))
```Run the file:
```sh
fnx demo.fnl
```