dntk 2.1.9

Command line's multi-platform interactive calculator, GNU bc wrapper.
docs.rs failed to build dntk-2.1.9
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: dntk-3.1.1

dntk

Travis CI v2.1.9 crates docker license platform

dntk is command line's multi-platform Interactive calculator, GNU bc wrapper.
gjf

✔︎ dntk means calculator in a japanese.
✔︎ dntk is gnu bc wrapper. so, syntax is equal to gnu bc. learn syntax more
✔︎ dntk support multi-platform 😊 mac, alpine, linux, and windows!!!
✔︎ dntk is a NATIVE The Rust Programming Language application.
✔︎ dntk can move cursor, can delete char, can refresh buffer.
✔︎ dntk write color means,

Current dntk's version: v2.1.9

Download Page: https://github.com/nnao45/dntk/releases/latest

Install

Mac

$ brew install nnao45/dntk/dntk

Linux

$ wget https://github.com/nnao45/dntk/releases/download/v2.1.9/dntk-v2.1.9-x86_64-unknown-linux-gnu.zip
$ unzip dntk-v2.1.9-x86_64-unknown-linux-gnu.zip

if can't move, try...

$ wget https://github.com/nnao45/dntk/releases/download/v2.1.9/dntk-v2.1.9-x86_64-unknown-linux-musl.zip
$ unzip dntk-v2.1.9-x86_64-unknown-linux-musl.zip

Windows

$ wget https://github.com/nnao45/dntk/releases/download/v2.1.9/dntk-v2.1.9-x86_64-pc-windows-msvc.zip
$ unzip dntk-v2.1.9-x86_64-pc-windows-msvc.zip

Cargo

$ cargo install dntk

zplug

$ zplug 'nnao45/dntk', as:command, from:gh-r

Docker

Can use dntk docker image,
Look!! Very light weight!!🚀

$ docker images nnao45/dntk
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
nnao45/dntk         latest              3a37b5d989b5        2 hours ago         10.5MB

And run,

$ docker run -it --rm nnao45/dntk:latest

And...

$ echo 'alias bc=dntk' >> ~/.bashrc
$ echo 'alias bc=dntk' >> ~/.zshrc

All OK!! 😎

Options

❯❯❯ dntk -h
Command line's multi-platform interactive calculator, GNU bc wrapper.

USAGE:
    dntk [FLAGS] [OPTIONS]

FLAGS:
    -h, --help           Prints help information
        --once           Run at only once
    -q, --quiet          No print information message
        --show-limits    Print the local limits enforced by the local version of bc, and quit
    -v, --version        Prints version information
    -w, --white          Set White color in a output

OPTIONS:
        --bc-path <PATH>     Use a specific bc command path [default: bc]
    -i, --inject <STRING>    First injection statement to the dntk
    -s, --scale <NUMBER>     Number of truncated after the decimal point

Windows Support

You may install bc.exe and set PATH.

$ choco install gnuwin
$ # or
$ wget wget https://embedeo.org/ws/command_line/bc_dc_calculator_windows/bc-1.07.1-win32-embedeo-02.zip
$ unzip bc-1.07.1-win32-embedeo-02.zip

gjf

Keybind

Basic Key

Basic Operation

Operation for Logical

Using Function

you can use under function.

more detail 👉 https://www.gnu.org/software/bc/manual/html_mono/bc.html

Pipe Use...

$ echo "123 * 2" | dntk
246

behave, like bc ☺️

Have a nice rust hacking days:sparkles::wink:

Writer & License

dntk was writed by nnao45 (WORK:Infrastructure Engineer, Twitter:@nnao45, MAIL:n4sekai5y@gmail.com).
This software is released under the MIT License, see LICENSE.