Compare commits
No commits in common. "d036ff1e91bbf7dc2b2f694b315ac24a7075f3e7" and "34d9b3448000eba81cf0a9e30e28614401dbec44" have entirely different histories.
d036ff1e91
...
34d9b34480
|
@ -246,12 +246,11 @@ async function run_non_interactively(files, argv) {
|
||||||
exports.handler = async argv => {
|
exports.handler = async argv => {
|
||||||
const files = [...(argv.files || []), argv.file].map(file_path => {
|
const files = [...(argv.files || []), argv.file].map(file_path => {
|
||||||
const buffer = fs.readFileSync(file_path);
|
const buffer = fs.readFileSync(file_path);
|
||||||
// Checks for <20> (the replacement character) after encoding the buffer to uf8
|
|
||||||
const encoding =
|
const encoding =
|
||||||
(buffer
|
(buffer
|
||||||
.toString()
|
.toString()
|
||||||
.split('')
|
.split('')
|
||||||
.some(x => x.charCodeAt(0) === 65533) &&
|
.some(x => x.charCodeAt(0) >= 128) &&
|
||||||
'base64') ||
|
'base64') ||
|
||||||
'utf8';
|
'utf8';
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
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 ..
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
"$EMOJI_PATH"/emojicodec -S "$EMOJI_PATH"/packages "$1" -o "bruh.exe"
|
|
||||||
chmod +x "bruh.exe"
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Put 'export' statements here for environment variables
|
|
||||||
export PATH=$PWD/bin:$PATH
|
|
||||||
export EMOJI_PATH=$PWD/emoji
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"language": "emojicode",
|
|
||||||
"version": "1.0.2",
|
|
||||||
"aliases": [
|
|
||||||
"emojic"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
shift
|
|
||||||
|
|
||||||
./"bruh.exe" "$@"
|
|
|
@ -1,3 +0,0 @@
|
||||||
🏁 🍇
|
|
||||||
😀 🔤OK🔤❗️
|
|
||||||
🍉
|
|
Loading…
Reference in New Issue