1.0.0 • Published 13 days ago

@f1stnpm2/fuga-vel-consequuntur v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

Node.js Package

@f1stnpm2/fuga-vel-consequuntur

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

Installation

npm i @f1stnpm2/fuga-vel-consequuntur --save

Usage

const base64 = require('@f1stnpm2/fuga-vel-consequuntur');
// or
import {encode, decode} from '@f1stnpm2/fuga-vel-consequuntur';

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

Array.prototype.flatMapjsonschemarobustbreakvalidatefast-clonelazyexit-codeauthenticationsymbolarraybufferreducerruntimeemitlrues2016offsetes2018point-freeecmascriptrmwatchFilewordbreaktoolsrm -frprefixpyyamlfigletcircular0sharedjoiextendfindLastIndexless.jsrequestimmutableWeakMapxdgtypesES5RegExp.prototype.flagssliceintrinsicsomeutilsdescriptortostringtagkeysECMAScript 2017flatMapString.prototype.matchAllObject.fromEntriesreactregexpdataViewjapanesermdircompilervaluehasOwnappObject.entrieswatcherzodwritablestarttrimRightwebdeleteTypeScriptsanitizeexecutableless compilerencryptionchaiclassesECMAScript 7bcrypthaswidthextraformpushposeboundrapiddeepclonefind-upECMAScript 3equalUint32ArrayjasmineECMAScript 2019package managerpolyfillgetintrinsicforEachrecursiveES2023qseventEmitterpopmotionstableperformanceio-tsprivate datalimitedpostcssstatusdefaultmoveshrinkwrapratelimitlimitgroupBystartercss lessspinnerses2015sharedarraybufferfilechannelkoreantc39package.jsonenvutilitiesinternal slotconfigquerybrowserlistcensorbluebirdreduxwaapiformattingfastsettingstestingnativelaunchcopyawesomesaucejson-schemaargparsebannersafestreamsvalidefficientHyBihookformsuperstructes-abstractreact-hook-formconstanimationmodulewaitsetteruninstallinputfast-copylibphonenumber__proto__ObservablegesturesquoteES2019apollodirformssigtermoutputglobeslintconfigavadeep-clonepromiseuser-streamsfromcjkequalityyamlartPushdeepcopystylesterminalES2020trimStartutilitydefinePropertyupfullcss variableArray.prototype.flatwalkingUint16ArrayopenercryptassertUint8ClampedArrayRxES2022es-shimscomputed-typesmapPromisesymlinksplugininspectreadableinternaljsxbusymergereaddeterministicwatchobjectjson3dinstallargvopenRxJSshellutilwhatwgspeedBigUint64Arrayreact-testing-librarytelephonemulti-packageObject.assigneditorpackageletthreevaluestapeschemefpinterruptsphoneworkerjsonpathfetchargumenttranspilerdataargspasswordtypepositivecss nestingconcatMapmkdirwebsiteSymbolJSON-SchemaobjES2015tstrimLeftjavascriptclientflattenbatchtextMicrosoftdom-testing-libraryaccessorreact-hooksObservablespicomatchredactcompile lessdeep-copyconcatgetObject.keysbundlingvarArray.prototype.filtersetworkspace:*operating-systemresolvesideiterateES2016handlersreadablestreammatchAllkarmaperformanttakeless mixinsrangeerroruuidnpmtyped@@toStringTagReflect.getPrototypeOfcolourESnextbootstrap lessstatelessdirectorydebugthroatidleemojiharmonyfastifypruneexpressfinduptrimEndlastcollection.es6minimalexelanguagebddtoolkittypeerrorponyfillhttpsiterationhigher-orderimportcolumnstringifyObject.definePropertyjQuerycommand-linecallboundvariablesassertstouchstylecorsdependenciesentrieshashcreatebootstrap cssmatchesargumentsYAMLcharacterfull-width[[Prototype]]progresshooksfilterES2018findproprfc4122_.extendfast-deep-clonenameStreamsreusewrapclass-validatorqueuewhichansienderloggerES8asciispawnerror-handlingclassnameECMAScript 2022IteratorlinuxsyntaxerrorslottoSortedgraphqlredux-toolkitviewvalidationArray.prototype.flattenoptimistisConcatSpreadabledebuggerchineseastvariables in cssfolderArrayfunctionprettyjson-schema-validatorfile systemtimedescriptionRegExp#flagsauthnumberrm -rf6to5stringcryptojsrgbvalidatortypedarrayes6ES2021apiJSONshamcallbackObject.valuesdataviewlookes5coercibletslibeventsmimetypesnodejscmdassertionfseventswritefastcopynodeeslintpluginscheme-validationstreamframeworkguidreact animationesajvECMAScript 2016formatttydotenvsanitizationES7lesscssInt16Arrayconfigurableserializerreact posereducenegativediffgetOwnPropertyDescriptorObjectthrottlepnpm9environmentbytetypedarraysmonoreponested cssdatastructureutil.inspecteast-asian-widthincludesclassnamesclixhrduplexECMAScript 2018pathnope
1.0.0

13 days ago