Create simple notes in json format from the command line using Deno
This is application is part of my article about Deno
Deno is a secure runtime for JavaScript and TypeScript.
- It is written in Rust and TypeScript and built on top of V8 Engine.
- It is based on modern features of the JavaScript
- It has
TypeScriptat its core Secureby default. No file, network, or environment access, unless explicitly enabled.- Ships only a single executable file.
- It embraces ES modules
- It has no package manager (at least not yet)
Shell (macOS, Linux)
$ curl -fsSL https://deno.land/x/install/install.sh | shPowershell (Windows)
$ iwr https://deno.land/x/install/install.ps1 -useb | iexHomebrew (macOS)
$ brew install denoChocolatey (Windows)
$ choco install deno$ cd deno-notes-cli
$ deno run --unstable --allow-write --allow-read src/app.ts| name | example |
|---|---|
| add | deno run --unstable --allow-write --allow-read src/app.ts add |
| list | deno run --unstable --allow-read src/app.ts list |
| read | deno run --unstable --allow-read src/app.ts read |
| update | deno run --unstable --allow-write --allow-read src/app.ts update |
| remove | deno run --unstable --allow-write --allow-read src/app.ts remove |
You can also use makefile to short the commands by running make add, make list, make read, etc.
This project is licensed under the terms of the MIT license
Made with ♥ by Jeferson © 2020
