jimp-dev / bmp-ts Goto Github PK
View Code? Open in Web Editor NEWA pure typescript bmp encoder and decoder
License: MIT License
A pure typescript bmp encoder and decoder
License: MIT License
which causes tsc to freak out :)
When try to use, receive the fallowing error:
node_modules\bmp-ts\dist\index.js:1
import BmpDecoder from './decoder';
^^^^^^
SyntaxError: Cannot use import statement outside a module
Any idea of how solve this.
Published [email protected]
doesn't include the dist/
directory. Without it, it can't be imported in any project.
In the scanImage function in the decoder there's this bit:
const result = processPixel.call(this, x, line); if (result === false) { return; }
...but processPixel is defined as returning void, hence the if statement will never evaluate to true. Any idea what was intended with that code? I can submit a pr and fix it, but just glancing at it I'm not sure what the intent was. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.