Emoji Pictographs and Codes
Map emoji pictographs to codes.
Installation
npm install @stdlib/datasets-emoji-picto-code
Usage
var table = require( '@stdlib/datasets-emoji-picto-code' );
table()
Returns an object mapping emoji pictographs to codes.
var t = table();
var p = t[ '😄' ];
p = t[ '🦄' ];
Notes
- Some emoji pictographs may have multiple applicable codes.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var table = require( '@stdlib/datasets-emoji-picto-code' );
var picto;
var tbl;
var i;
tbl = table();
picto = objectKeys( tbl );
for ( i = 0; i < picto.length; i++ ) {
console.log( picto[ i ] + ' => ' + tbl[ picto[ i ] ] );
}
CLI
Installation
To use the module as a general utility, install the module globally
npm install -g @stdlib/datasets-emoji-picto-code
Usage
Usage: emoji-picto-code [options]
Options:
-h, --help Print this message.
-V, --version Print the package version.
Notes
- Data is written to
stdout
as comma-separated values (CSV), where the first line is a header line.
Examples
$ emoji-picto-code
emoji,code
...
License
The data files (databases) are licensed under an Open Data Commons Public Domain Dedication & License 1.0 and their contents are licensed under Creative Commons Zero v1.0 Universal. The software is licensed under Apache License, Version 2.0.
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
License
See LICENSE.
Copyright
Copyright © 2016-2021. The Stdlib Authors.
0.0.3 (2021-06-16)
No changes reported for this release.
</section>
<!-- /.release -->
<section class="release" id="v0.0.2">