Git Product home page Git Product logo

ts-png-to-ico's People

Contributors

dependabot[bot] avatar jarch09 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ts-png-to-ico's Issues

documentation for TS

I've not checked when this becomes necessary, but what I noticed is that I have to import your library like this:

import pngToIco from 'ts-png-to-ico';
const { generateIco } = pngToIco;

Potentially relevant parts of tsconfig.json:

"target": "es2017",
"lib": ["es2017"],
"module": "node16", 
"moduleResolution": "node16", 
"esModuleInterop": true, 

May be worth mentioning in the documentation.

tslib dependency

First off thank you for writing this, was about to write something myself and did a check and found that you had already created this!
I did notice that there's a dependency missing: tslib
In my dev-environment that was not required to specify explicitly, but once deployed it can be, so an easy one to miss. Just thought I'd let you know.

package.json

When updating your package I realized I had one more bug to report:

"main": "dist/index.ts",

causes:

  throw new ERR_MODULE_NOT_FOUND(
        ^
CustomError: Cannot find package './node_modules/ts-png-to-ico/' imported from ./src/routes/integration/index.ts

changing it to:

"main": "dist/index.js",

solves it for me, but not sure this is the best solution.

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.