https://github.com/daniel-beard/psst
PaSteboard String Tool - Julia based string transform tool, using Julia's Meta.parse.
https://github.com/daniel-beard/psst
Last synced: 5 months ago
JSON representation
PaSteboard String Tool - Julia based string transform tool, using Julia's Meta.parse.
- Host: GitHub
- URL: https://github.com/daniel-beard/psst
- Owner: daniel-beard
- Created: 2020-03-13T22:49:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T21:53:06.000Z (about 2 years ago)
- Last Synced: 2025-03-29T23:41:20.762Z (about 1 year ago)
- Language: Julia
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# psst
PaSteboard String Tool - Julia based string transform tool, using Julia's Meta.parse.
E.g.
```bash
$ echo "hello world" | psst 'spongebob'
hElLo wOrLd
```
```bash
$ echo "one two three four" | psst 'words |> take(2)'
"one", "two"
```
Validate JSON
```bash
$ psst 'parseJSON |> pp'
{
"an_array": [
"string",
9
],
"a_number": 5.0
}
nothing
```
URLs
Examples assume `"http://test.com?foo=bar&anotherParam=baz"` is in the pasteboard.
```bash
# Check if valid
$ psst 'parseURL |> isValid'
# Extract query param
$ psst 'parseURL |> queryParams |> get("anotherParam")'
baz
```