Upng.js: Feature request: NPM module

Created on 14 May 2017  ·  16Comments  ·  Source: photopea/UPNG.js

Could you create an NPM module of UPNG.js? Samples on how to use it in a Node.js or browser context would also be very helpful.

Most helpful comment

I'm sympathetic with the npm package request, but honestly, for a project this young, lets:

Npm is attempting to integrate with github and I use it for one of my dependencies. See:
https://docs.npmjs.com/cli/install
.. and search for github.

The code is delightfully clean (too bad pako isn't, alas). My wish is coming in the next issue :)

All 16 comments

We was talk about this with author today.
I hope that npm module will be created soon.
It was a shame not to have it.

I asked them to make a web interface for making NPM packages: https://github.com/npm/npm/issues/16625

BWT. I think that GitHub should create its own alternative to NPM, since a lot of interesting software is already here and GIT protocol seems to be uncomfortable for that.

I'm sympathetic with the npm package request, but honestly, for a project this young, lets:

Npm is attempting to integrate with github and I use it for one of my dependencies. See:
https://docs.npmjs.com/cli/install
.. and search for github.

The code is delightfully clean (too bad pako isn't, alas). My wish is coming in the next issue :)

Also, to be usable in a Node environment, the file needs this change on the top:

import pako from 'pako';
export var UPNG = {};

Some progress guys? :-)

I'm already using UPNG.js in a node module style for this module. If @photopea is OK with it, I can try to publish a pure UPNG.js module. But I can't guarantee any time frame although it shouldn't take too long.

@awerlang Actually you shouldn't use ES6 module syntax yet, as it is not supported by NodeJS. Use

var pako = require('pako');
module.exports = {};

@Scimonster you're right, I should have mentioned this requires a transpiler

It looks like someone did publish this to NPM. https://www.npmjs.com/package/upng

Unfortunately without attribution to the original author.

Sad! @photopea !

Yes, and also without a public repository and a bunch of IntelliJ IDEA config stuff which shouldn't be part of an NPM module.

@Scimonster would you please be able to get UPNG.js to npm, too?

@Scimonster would you please be able to get UPNG.js to npm, too?

Should @Scimonster do it or should I do it.

@photopea Yes, with the same collaborator agreement we had on UTIF.

@Scimonster Ok, I made you a collaborator. Please keep UPNG.js usable in a browser as it is. Add a mention about NPM into README.md . Thank yo very much. I really appreciate your help :)

Done. I had to upload as upng-js because as i said above, someone already took upng.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HRK44 picture HRK44  ·  9Comments

MartinMuzatko picture MartinMuzatko  ·  6Comments

Ser-Gen picture Ser-Gen  ·  5Comments

iklementiev picture iklementiev  ·  3Comments

AaronAcerboni picture AaronAcerboni  ·  3Comments