Bug#994210: ITP: node-is-blob -- check if a value is Blob
Le 13/09/2021 à 20:12, mdbilal@disroot.org a écrit :
> Package: wnpp
> Severity: wishlist
> Owner: Mohammed Bilal <mdbilal@disroot.org <mailto:mdbilal@disroot.org>>
> X-Debbugs-CC: debian-devel@lists.debian.org
> <mailto:debian-devel@lists.debian.org>
>
> * Package name : node-is-blob
> Version : 2.1.0
> Upstream Author : Sindre Sorhus <sindresorhus@gmail.com
> <mailto:sindresorhus@gmail.com>> (sindresorhus.com)
> * URL : https://github.com/sindresorhus/is-blob#readme
> <https://github.com/sindresorhus/is-blob#readme>
> * License : Expat
> Programming Lang: JavaScript
> Description : Check if a value is Blob
> Simple module that can be used in browsers to check if a blob/file is
> present.
> .
> Node.js is an event-based server-side JavaScript engine.
>
> This is my first time packaging for debian. So I would need a sponsor
> for this package.
Hi,
this is a very little package :
'use strict';
module.exports = value => {
if (typeof Blob === 'undefined') {
return false;
}
return value instanceof Blob ||
Object.prototype.toString.call(value) === '[object Blob]';
};
it won't be accepted by ftpmaster, please embed it if you need it.
Cheers,
Yadd
Reply to: