1.0.0 • Published 1 year ago

@a-2-c-2-anpm/sed-autem-odit v1.0.0

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

@a-2-c-2-anpm/sed-autem-odit

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Compressible Content-Type / mime checking.

Installation

$ npm install @a-2-c-2-anpm/sed-autem-odit

API

var @a-2-c-2-anpm/sed-autem-odit = require('@a-2-c-2-anpm/sed-autem-odit')

@a-2-c-2-anpm/sed-autem-odit(type)

Checks if the given Content-Type is @a-2-c-2-anpm/sed-autem-odit. The type argument is expected to be a value MIME type or Content-Type string, though no validation is performed.

The MIME is looked up in the mime-db and if there is @a-2-c-2-anpm/sed-autem-odit information in the database entry, that is returned. Otherwise, this module will fallback to true for the following types:

  • text/*
  • */*+json
  • */*+text
  • */*+xml

If this module is not sure if a type is specifically @a-2-c-2-anpm/sed-autem-odit or specifically un@a-2-c-2-anpm/sed-autem-odit, undefined is returned.

@a-2-c-2-anpm/sed-autem-odit('text/html') // => true
@a-2-c-2-anpm/sed-autem-odit('image/png') // => false

License

MIT

urlcallcomparexhrcurlhasOwnidomitcloudformationArray.prototype.containsdefineimmerjestprototypechinesestylingefficientlockfileintrinsicgroupenvBigInt64ArrayyupspeedqueueweakmapqscachesortedES2023iterationcall-bindtypedbufferses6WeakSethasOwnPropertywgetterminalstreamflatajaxchromiumobjslotpredictableimportpostcsslessjasminermdirstructuredClonearrayscommanderES5browserarrayglobcopycompilerregexreact-hook-formtyped arrayreactflagtoobjectbindcommand-linecolouruninstallPushStreamargumentMicrosoftgradients css3internalinstallsesArray.prototype.flatMapgetterfluxUnderscoretypedarraystraversebcryptwatcherparsereact-testing-libraryrmclass-validatorES3nativeconsumeTypedArraytimefast-deep-copyes5make dirBigUint64Arrayinputregularcore-jsfunctionalformatstringifymochacolumnsassertwatchFileECMAScript 7Int16Arraymobilesimpledbcircularcoerciblefile systemgetintrinsiclinkredactgetoptbeanstalkhotsyntaxerrorassertsstatelessindicatorcharactersschemecloudfronttty$.extendformYAMLuppruneRxiebootstrap cssreduxObject.valuesgroupByserializefast-clonesuperagentconnectcompile lesstypeerrortrimStartclassnameeslintplugincollection.es6queryjsdomjapanesevpctappropertiescall-boundlook-upbrowserlistchannelpnpm9emitflatMapec2testingpromiseswordbreakhookformmonorepoHyBitrimLeftiamcode pointssuperstructbundlingrobusttrimEndschemaapierrormatchAllvestcommandoptionreducerpolyfilltoSortedbreakString.prototype.trimwraplinthttpsestreeviewsymbolsparenttrimRightexpressionpatchawsobjectworkercensoravanpmnodedeep-copydeepkarmaRegExp#flagsES2021fastcopyenderbannerbootstrap lessES2018hardlinksmimetypesduplexes2017readablefigletES8fromcontains0argvvariables in csselbdefinePropertyebsspinnerECMAScript 2021ajvlengthfpsUint16Arrayfastifyhigher-orderreducees7dependenciesdateObject.fromEntrieseast-asian-widthzerowatches-abstractdataviewremovesnskeyswebbluebirdfileprivatereadablestreamdatastructureECMAScript 2017corsrm -rfresolveauthenticationObject.entriesoutputdeepcloneloguuidjsdiffredirectES7prefixrgbratepackage managerfast-copyArray.prototype.flattentelephoneECMAScript 6serializationES2022Setfseventscloudsearchtypeloadbalancingbrowserslistawaitreact-hooksinstallernumbersidelanguageglacierWebSocketdirprotocol-buffersdebuggeres2016trimless.jsassertionponyfillmime-dbmapfindLastIndexdescriptorsreal-timeObject.getPrototypeOfdataViewtypesroutingecmascriptURLSearchParamsTypeScriptshrinkwrappackagesfindhooksmkdirsforEachshamreplayinferencevalidateworkspace:*stableauthreadjsonpathmkdirpstarteropenstoragegatewaythrottleownArray.prototype.findLastIndexmergevalidextensionwhichcliclassnamescolorsharedframeworkdeep-clonetypedarrayminimaltouchlimitString.prototype.matchAllmoveRFC-6455CSSStyleDeclarationsetqueueMicrotaskimportexportliveObject.definePropertya11ycssprettygenericssetImmediatejoiclassesstringeslint-pluginworkflowECMAScript 2016emreventDispatcherinvariantwidthnested cssdynamodbECMAScript 5StyleSheetFloat32ArrayelmstringifierObservablesomestyleguidewafes2018protobufgraphqlInt8ArrayArrayBuffer.prototype.slicevisualloadingmetadatautilitiesUint8ArraystateansibddtstoolsjsxeventEmitterArray.prototype.includessameValueZeroAsyncIteratorphonefixed-widthinrdsdropInt32Arrays3eventsStreamsfindLastxtermObjectURLprogresscreateECMAScript 2023fastenvironmentsequencerangeerrorweaksettc39offsetguidpersistentcallboundless mixinsdom-testing-libraryshimruntime256Array.prototype.filtercollectionwaittoStringTagmomentESexecextendES2016MapcolumnmimesyntaxinspectstylewordwrapRegExp.prototype.flagsconfigurableRxJSvalueES6airbnblrutapeJSONkeytoArrayastmulti-packageequalitylinewrappushmixinsdirectoryoptimizerfunctionlibphonenumberexpressmruimmutablebyteOffsetautoprefixerJSON-Schemabufferclone-0helpersdomaccessibilitycolorsgetPrototypeOfcss nestingnamesregexpform-validationFunction.prototype.namepluginES2015shellhas-owncloudwatchperformantamazonisConcatSpreadableasyncconcatECMAScript 2020css variablecss-in-jsless compilerpositivestdlibIteratorArrayBufferrandomwalkingcryptdeleteObservablesrouteextrasymlinkcss lessnegativefull-width_.extend[[Prototype]]ES2019electrontddscheme-validationreusefastcloneagentchromeartes2015autoscalingidleTypeBoxpackagepreprocessorWeakMapl10n
1.0.0

1 year ago