Skip to content

Commit

Permalink
Add bintools extension (raycast#7159)
Browse files Browse the repository at this point in the history
* initial release

* updated readme and plugin to make usage clearer
  • Loading branch information
frostplexx authored Jun 22, 2023
1 parent d1cb0c5 commit a11ac7e
Show file tree
Hide file tree
Showing 12 changed files with 2,613 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/bintools/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": ["@raycast"]
}
10 changes: 10 additions & 0 deletions extensions/bintools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# Raycast specific files
raycast-env.d.ts

# misc
.DS_Store
4 changes: 4 additions & 0 deletions extensions/bintools/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
3 changes: 3 additions & 0 deletions extensions/bintools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# BinTools Changelog

## [Initial Version] - 2023-06-13
21 changes: 21 additions & 0 deletions extensions/bintools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# BinTools

A [raycast](https://raycast.com/) calculator plugin for binary, decimal, hex and octal numbers.

## Usage

Enter your calculation in the text field, by using the following prefixes for the different number systems:

- `0b` for binary
- `0x` for hexadecimal
- `0o` for octal

The result will be calculated on the fly and displayed live under your calculation.
If you want to calculate floating point numbers, you can use the `.` or `,` as decimal separator.
Currently only decimal and binary fixed point numbers are supported as input.

### Examples

- `0b101 + 0x1` will result in `0b110` or `6` in decimal
- `0b0101+0o5-0xf` will result in `-0b101?` or `-5` in decimal
- `0b0.1` will result in `0.5` in decimal
Binary file added extensions/bintools/assets/command-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a11ac7e

Please sign in to comment.