Compare commits
6 Commits
34d9b34480
...
d036ff1e91
Author | SHA1 | Date |
---|---|---|
Thomas Hobson | d036ff1e91 | |
Thomas Hobson | 3eff371bd4 | |
Thomas Hobson | 1b76bd8d1d | |
Thomas Hobson | cbd781c834 | |
Omar Brikaa | 37b5b02067 | |
Hydrazer | 440559f7b4 |
|
@ -246,11 +246,12 @@ async function run_non_interactively(files, argv) {
|
|||
exports.handler = async argv => {
|
||||
const files = [...(argv.files || []), argv.file].map(file_path => {
|
||||
const buffer = fs.readFileSync(file_path);
|
||||
// Checks for <20> (the replacement character) after encoding the buffer to uf8
|
||||
const encoding =
|
||||
(buffer
|
||||
.toString()
|
||||
.split('')
|
||||
.some(x => x.charCodeAt(0) >= 128) &&
|
||||
.some(x => x.charCodeAt(0) === 65533) &&
|
||||
'base64') ||
|
||||
'utf8';
|
||||
return {
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
curl -L https://github.com/emojicode/emojicode/releases/download/v1.0-beta.2/Emojicode-1.0-beta.2-Linux-x86_64.tar.gz -o emoji.tar.gz
|
||||
tar xzf emoji.tar.gz
|
||||
|
||||
mv Emojicode-1.0-beta.2-Linux-x86_64 emoji
|
||||
|
||||
rm emoji.tar.gz
|
||||
|
||||
cd emoji
|
||||
|
||||
./install.sh
|
||||
|
||||
|
||||
chmod +x emojicodec
|
||||
|
||||
cd ..
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
"$EMOJI_PATH"/emojicodec -S "$EMOJI_PATH"/packages "$1" -o "bruh.exe"
|
||||
chmod +x "bruh.exe"
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
||||
export EMOJI_PATH=$PWD/emoji
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"language": "emojicode",
|
||||
"version": "1.0.2",
|
||||
"aliases": [
|
||||
"emojic"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shift
|
||||
|
||||
./"bruh.exe" "$@"
|
|
@ -0,0 +1,3 @@
|
|||
🏁 🍇
|
||||
😀 🔤OK🔤❗️
|
||||
🍉
|
Loading…
Reference in New Issue