-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs and Examples #1
Comments
Hey, very nice to hear this got your interest! I created this project a few years ago when I was curious about how the The shell itself is quite a bit different from a programming language as execution environment, specially in terms of how the different processes share data. In a language you have input parameters and return values, while in the shell you have stdin/out/err .. which makes hard to implement the functions. I was able to start making things like I still wonder.. is it possible to implement such library? |
Yes, youre right.
The syntax of most shells on DOS and *nix dont have the supporting syntax
for majority of the techniques used in lodash.
However, you can use some sort of preprocessor that is directly binded to
lodash and outputs procedural shell scripts.
Just a thought! 😇
|
Hey, this sounds interesting! How would such preprocessor work? Could you please show some example about what you were thinking? |
Absolutely, below is a quick 2-minute sketch of how I think it would work at a high level: const _= require('loda.sh');
_.print('Hello World'); Result: echo 'Hello World' |
Spicy project, I like it.
Would be nice to have some docs and examples to see how to use it in the wild. 💯
The text was updated successfully, but these errors were encountered: