-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fb8331
commit 13bd96a
Showing
10 changed files
with
7,740 additions
and
3,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "emoji-translate", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A library that translates english words to emoji", | ||
"authors": [ | ||
"Monica Dinculescu <[email protected]>" | ||
|
@@ -20,6 +20,6 @@ | |
"index.html" | ||
], | ||
"dependencies": { | ||
"emojilib": "~1.0.0" | ||
"emojilib": "^2.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "emojilib", | ||
"version": "1.0.0", | ||
"version": "2.0.2", | ||
"homepage": "https://github.com/muan/emojilib", | ||
"authors": [ | ||
"Mu-An Chiou <[email protected]>" | ||
|
@@ -15,16 +15,16 @@ | |
"test.js", | ||
"*.yml", | ||
"package.json", | ||
"CONTRIBUTING.md" | ||
"CONTRIBUTING.md", | ||
"**/.*" | ||
], | ||
"_release": "1.0.0", | ||
"_release": "2.0.2", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v1.0.0", | ||
"commit": "6512c2387c7ce82d49b4e451d877002fe7239150" | ||
"tag": "2.0.2", | ||
"commit": "5222cbc4887053e8b94fa30ed2f5e9c840697f28" | ||
}, | ||
"_source": "git://github.com/muan/emojilib.git", | ||
"_target": "~1.0.0", | ||
"_originalSource": "emojilib", | ||
"_direct": true | ||
"_source": "https://github.com/muan/emojilib.git", | ||
"_target": "^2.0.0", | ||
"_originalSource": "emojilib" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "emojilib", | ||
"version": "1.0.0", | ||
"version": "2.0.2", | ||
"homepage": "https://github.com/muan/emojilib", | ||
"authors": [ | ||
"Mu-An Chiou <[email protected]>" | ||
|
@@ -15,6 +15,7 @@ | |
"test.js", | ||
"*.yml", | ||
"package.json", | ||
"CONTRIBUTING.md" | ||
"CONTRIBUTING.md", | ||
"**/.*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var fs = require('fs') | ||
var path = require('path') | ||
var JSONStream = require('JSONStream') | ||
var format = require('format-json-stream') | ||
|
||
var simplemap = fs.createWriteStream(path.join(__dirname, 'simplemap.json')) | ||
|
||
fs.createReadStream(path.join(__dirname, 'emojis.json')) | ||
.pipe(JSONStream.parse('*', function (val, key) { | ||
if (val.char) { | ||
return [key[0], val.char] | ||
} | ||
})) | ||
.pipe(JSONStream.stringifyObject()) | ||
.pipe(format()) | ||
.pipe(simplemap) |
Oops, something went wrong.
13bd96a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@notwaldorf maybe you'll also like to tag it? (git tag) 😄
13bd96a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, done!
13bd96a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @notwaldorf