Git Product home page Git Product logo

Comments (5)

iamcal avatar iamcal commented on June 12, 2024

I'm not sure how to do this really. The project does not make sense without the images, and npm does not accept 50MB+ packages

from emoji-data.

SEAPUNK avatar SEAPUNK commented on June 12, 2024

You could have this be a part of the module "postinstall" process: It runs a script that downloads the image data into its module dir. Kind of how the Electron package does it:

[ivan@alpha ~]$ sudo npm install -g electron-prebuilt
[sudo] password for ivan: 
/usr/bin/electron -> /usr/lib/node_modules/electron-prebuilt/cli.js

> [email protected] postinstall /usr/lib/node_modules/electron-prebuilt
> node install.js

Downloading electron-v0.36.1-linux-ia32.zip
[============================================>] 100.0% of 38.25 MB (2.68 MB/s)

from emoji-data.

SEAPUNK avatar SEAPUNK commented on June 12, 2024

Past that it will be basically about exposing an API that lets you do things with the emoji, e.g. get the JSON, get the file for an emoji, etc.

from emoji-data.

olegshilov avatar olegshilov commented on June 12, 2024

@iamcal Yes, you right. There's no need to put this package to npm registry.
But, if you add package.json file to repository, it allows us to install directly from github with npm i github:iamcal/emoji-data.git

from emoji-data.

iamcal avatar iamcal commented on June 12, 2024

i've added a version basic package.json file: https://github.com/iamcal/emoji-data/blob/master/package.json

let me know what needs changing, or send a PR

from emoji-data.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.