1.0.0 • Published 1 year ago

@f1stnpm3/molestiae-numquam-totam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Node.js Package

@f1stnpm3/molestiae-numquam-totam

Download images from remote URLs or use local images and encode/decode them to Base64 string or Buffer object

Installation

npm i @f1stnpm3/molestiae-numquam-totam --save

Usage

const base64 = require('@f1stnpm3/molestiae-numquam-totam');
// or
import {encode, decode} from '@f1stnpm3/molestiae-numquam-totam';

Examples

// encoding a jpg to base64
const url = 'https://example.com/test.jpg';
const options = {
  string: true,
  headers: {
    "User-Agent": "my-app"
  }
};

// writing to file named 'example.jpg'
const image = await encode(url, options);
await decode(image, { fname: 'example', ext: 'jpg' });

// writing to a sub-directory
// after creating a directory called 'photos'
const image = await encode(url, options);
await decode(image, { fname: './photos/example', ext: 'jpg' });

Contributing

Read the CONTRIBUTING guide for information.

License

Licensed under MIT. See LICENSE for more information.

Issues

Report a bug in issues.

Made with love in Dhaka, Bangladesh by Riyadh Al Nur

RegExp#flagsvariablesserializestringmergeawaitrestfulpyyamldescriptiontermECMAScript 2017scheme-validationavasimpledbFunction.prototype.nameString.prototype.trimbusylanguagetrimLeftestreestylesheetbrowsera11ymrucurlpromisestoArraysideinternalarraybufferArrayoncedatastructurelintpackage.jsonStyleSheetawscsssharedarraybufferoperating-systemsigintsnswindowscallboundUnderscoreserializershellECMAScript 2023es-shim APIbundlinglockfilegetintrinsicfast-copyhasOwnPropertywalkingrouterform-validationtslibArrayBuffer#slicebluebirdbindjstostringtagcliclassnamesutilECMAScript 7react-hook-formperformancewhichprefixless compilerflattenrfc4122limitminimallogginges-abstractfetchrmdirObservablewaitrequestes2016indicatorfluxcloudfrontFloat32ArrayassignArray.prototype.flatMapsearchmoverapidcss variablecollectionchineseflagsdotenvprivateelectronratestreamsrouteimportexportES7optimistes-shimsguidmkdirsObject.fromEntrieshandlersworkspace:*fixed-widthemrES8typeofprettynegativeimporthttpspropertydebuggdprerrorcloneURLwebreducetypedarraysArray.prototype.findLasttestcircularWeakSetObject.assignremoveeslint-pluginpreserve-symlinksstdlibsuperagentcloudwatchyupopenislibphonenumberlazyefficientidemitvpcdatefastqs@@toStringTagtsbootstrap lessfsdeepiesetterproxygenericschromium.envdependency managerpropchromeiteratorlinewrapmonoreposuperstructassertsregexparentshttpmatchAllHyBikoreansameValueZeropackage managerlinkstatelessfullcall-boundtddregexp256commanderES2020typeerrortypescriptconcatMapphoneformssignalstoolkitgetPrototypeOfponyfillwraptoSortedisConcatSpreadablewritei18nspeedES2018progresstakeSymbol.toStringTagnopeecmascriptvalidatejsdiffroute53inprotobufregular expressionsnodejsconnectMaptoobjectfind-upwatchFileInt32ArrayfindupRFC-6455ECMAScript 6interruptsmoduletoStringTagimmerstylesjsdomjsxintrinsicclass-validatorexitarktypecorsoutputvaluesSymbolparseinferencewafcomparehooksArray.prototype.containsoffsetes2018replayfunctionsdynamodbmochaES2016inspectpnpm9debuggerquotees7kinesisttywatchdeleteelbagentrequireschemesymbolsworkereventDispatcherperformanthigher-orderchaitrimRightformCSSES3concatdescriptorselmbufferiamconfigurablegroupByfpsrdspackagesstyleguidelasttimecensoridleECMAScript 3irqextendES5ES2022authjQuerydeepcloneownuninstallajaxjsonpathdataflatfastifysortdefinePropertystructuredCloneArray.prototype.filtercharactersetImmediateCSSStyleDeclarationstatusupcode pointsshamcolumnbundlereslintpluginfindLaststartersomeprivate dataTypeScriptbufferswatchersetwordwrapclassnameerror-handlingshebangredactfast-deep-copyaccessorbyteOffsetfseventscoerciblesharedhookformECMAScript 2020mixinsURLSearchParamscore-jsfastclonedeepcopyparent_.extendmiddlewareArray.prototype.flatwordbreaktypeloadinglookrm -rfmodulesreact-hooksformatexpresshas-ownmulti-packagecallbackArrayBuffer.prototype.slicefindLastIndexstyled-componentstouchurljoibrowserslistECMAScript 2021$.extendpreprocessorcommand-linerangeerrorrandominternal slotlesscssasynctypedhelpersmacoslessautoprefixerdom-testing-libraryenvcontainsmime-dbnpmebspersistentfast-cloneJSON-Schemamkdirnested cssUint16ArrayMicrosoftreadconsolermruntimePushsignallinuxredux-toolkithasOwnInt16Arraypredictablexhrspinnerslook-upspecmatchforEachtesterECMAScript 2016duplexgradients cssReactiveExtensionsarraywarningroutingdayjselasticacheyamlfunctionaltrimEndWebSocketsECMAScript 2022cjkoptionstoragegatewayexecexit-codecolourES6emojidataViewwhatwgenderprunebyteLengthcloudsearchbeanstalkkeyreact-testing-libraryconsumecolumnsgetwritablesequencegetOwnPropertyDescriptorhotnumberSetmatchesStreamspathequal0artdomtestingfastcopyquerystringtypedarrayhastelephoneentriessortedfigletbrowserlistpushsymbolcalloptimizercallbindUint8Arraytrimmkdirpweakmapvariables in csstypesafemetadataapiaccessibilityes2015jwtencryptionEStraversefullwidthAsyncIteratorYAMLtextnegative zeroconcurrencysetPrototypeOfequalityUint32Arraymimetypesratelimites2017validobjsafedataviewfiltergradients css3japanesehashES2015visualappextracollection.es6cachecompilereventsinputtypesprocessvalidationpluginparsingescaperestl10nincludesamazonthrottledeep-copycompile lessshrinkwraputil.inspectfast-deep-cloneString.prototype.matchAllpasswordes8es5full-widthsyntaxerrorpipe
1.0.0

1 year ago