npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@landmineaknpm/accusamus-rerum-accusamus

v1.0.0

Published

[![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][ci-image]][ci-url] [![Test Coverage][coveralls-image]][coveralls-url]

Downloads

10

Maintainers

hai836799hai836799

Keywords

MapnativetypeerrordefinePropertycloudformationsetPrototypeOfnested cssconfigurablestylesheetoptionInt32ArraygetPrototypeOffigleteslint-pluginposeduplexproxyECMAScript 5coerciblefastiterateformattingcode pointspropObservablescensorreal-timevaluescheckemrArray.prototype.flattenstyleguidestructuredClonemimetypesshrinkwrapbootstrap cssidleArray.prototype.findLastincludesRFC-6455robust3dArray.prototype.flatinferenceparsinginstallerbindprotobufString.prototype.trimec2findes8httpsetterdroptypescripttoStringTageventDispatcherlanguagetypedarrayopentoArrayreducejQuerys3dependency managerwarningpassworddotenvless.jsnegativeSetajvstreamsJSON-Schemacomparees-shimsregular expressionassertfunctionalchannelHyBiinputboundpreprocessorstateECMAScript 2017ES2021serializeroptimistcallboundCSSStyleDeclarationendpointregexppreserve-symlinkssnsindicatorstylinghelperserror-handlingtypesafe@@toStringTagarraybufferfulltypedarraysfromuuidwaapisuperstructeslintArrayBufferes6npmshamstableguidnegative zeromakebufferglobbluebirdRegExp#flagsstyleflatMapjoipyyamlreusettychaimacosworkflowsigintflagsiamwrapbannerescapexhrprocessobjWebSocketoperating-systemwgetwafpackagekinesisvariables in cssjsxtypanionreducercompilereventEmitterisES8matchAllbcryptFloat32Array0containsArray.prototype.flatMapfast-deep-clonespringclassesenumerablecss nestingobjectkeystatuswatchingweaksetfilterObject.getPrototypeOfhasOwnPromiseartsameValueZeroemojisymlinkssetmochareduxtrimStartJSONprogressform-validationsafegdprairbnbfunctionsencryptioniteratorscheme-validationtrimEndcommanderstarterargvreadablestreamprunebundlingpersistentvalidationdiffIteratorpackagesstringredux-toolkitregexelectronexpressiononcedirfastifyroute53ECMAScript 2022jscssparentsrm -rfECMAScript 7graphqlgradients css3ponyfillqsjasminebddshebangestreefast-deep-copymodulescryptefficientmime-dbdatevaluerm -frmapreducesigtermwalkpolyfillpopmotionprototypeeslintconfigmergeReactiveExtensionstrimLeftmatchesinvariantdefinewhatwgmatchschemapushinspectlintfindupstringifysearchdeep-cloneStyleSheetstylesconsumergbl10nObservablelengthFloat64Arraysymlinkschemeconcurrencypredictableclassnamesimmertexti18njsonArray.prototype.containstslibdebuggerhashUint8ArraytestertelephonedescriptionisConcatSpreadableprefixquerystringchinesemake dirtypegetoptarrayfixed-widthelburlconcatMapWeakSetlistenersES7yupslicetrimRightfetchutilitiesebshookformfunctionphonecryptojapaneseyamldescriptorsgetgroupfast-clonecollectionpluginsignalcloudwatchcharactersUint16ArrayrandomwatchFileECMAScript 6ES2023Uint8ClampedArrayidmetadatasuperagentspeedjestnamefile systemrequireassertionspinnerswritemkdirbreakserializelimitparentjavascriptstreamexitcolouroffsetclass-validatortoolkitECMAScript 2023draginternal slotajaxkarmaentriesuninstallgradients csschromiumdependencieswindowsutil.inspectenvironmentautoscalingserializationvestvpcargparsepostcsselmInt16Arrayingettercall-bindcloudfrontthroatdeleteextratddimmutabledatastructurequotebatcheast-asian-widthpromisesagentECMAScript 2016debugmomentredactreplayperformantio-tsFunction.prototype.namerfc4122xtermthrottlemapworkerTypedArrayexectesteveryecmascripttermes-abstractchromefastcloneformsloggererrorrdssescacheclassnamewritablecloudsearchresolveURLSearchParamswebcollection.es6jsonpathsortedloggingcorsprettycopyvariablestouchnodejslrutaskkeyscore-jsreact animationawesomesaucedeepreadableawsfpses7groupByReactiveXdataviewmruliveECMAScript 2021Symbol.toStringTagfileloadingECMAScript 3testingtyped arrayRegExp.prototype.flagsspinnerconnectrecursiveES2016String.prototype.matchAllTypeScriptdeep-copySymbolkoreanECMAScript 2019assertspromisereact-hookspnpm9privatecallbindsimpledbawaitprivate datasymbolspicomatchdirectoryAsyncIteratorreadlazyomitCSSlooknopecoreownsyntaxlogObject.valuesES3fullwidthless csscjkESnextmobilewatchrmsequencecss lessslotlastcolumnasyncendergetOwnPropertyDescriptores-shim APIlinuxdayjsirqtc39walkingshimbytetoSortedstatelessansihooksfull-widthiefolderequalenvbrowserlistES6movereact posemonorepogenericsloadbalancingURLlibphonenumbersharedWeakMapstyled-componentsmodulecommandhigher-orderglacierspecbufferscreatedynamodbwatcherexit-codedeepcopypositivenumberObject.entriesweakmaphasTypeBoxwordwrappostcss-plugines2018Streamwidthlimitedsqs256mkdirsjsdomfindLastprotocol-buffersunicodeproto__proto__look-upEShttpscompile lessvisualArrayBuffer#slicesymbolstdlibinternalReflect.getPrototypeOfexpressimportES2020typedObject.definePropertyextensiones2017ECMAScript 2015importexporttostringtagdomthreeES2018hasOwnPropertypatchqueueless compilerbyteOffsetpropertiespackage managerlinkauthtapeArray.prototype.findLastIndexES2015zodfind-upregularutilitybyteLengthutilArrayBuffer.prototype.slicereact-hook-formsharedarraybufferhotObject.assignbrowsercurlfseventsMicrosoftsettingsRxviewjwttraversetrimformattoobjectcodesextendelasticacheeslintplugintoolsamazonformcloudtrailstringifierArray.prototype.filtertakefsremovedescriptorsignalsBigUint64Arrayaccessorparsesidemulti-packageES2019package.jsonnodeflatdeterministicconfigshellcolorinstalltscharactercolumnspropertyassignUnderscorehas-ownes5hardlinkses2016performancebrowserslistaccessibility.envECMAScript 2020somequerynamesframerarrayslesscssemitmkdirpObject

Readme

@landmineaknpm/accusamus-rerum-accusamus

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

The ultimate javascript content-type utility.

Similar to the [email protected] module, except:

  • No fallbacks. Instead of naively returning the first available type, @landmineaknpm/accusamus-rerum-accusamus simply returns false, so do var type = mime.lookup('unrecognized') || 'application/octet-stream'.
  • No new Mime() business, so you could do var lookup = require('@landmineaknpm/accusamus-rerum-accusamus').lookup.
  • No .define() functionality
  • Bug fixes for .lookup(path)

Otherwise, the API is compatible with mime 1.x.

Install

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

$ npm install @landmineaknpm/accusamus-rerum-accusamus

Adding Types

All mime types are based on mime-db, so open a PR there if you'd like to add mime types.

API

var mime = require('@landmineaknpm/accusamus-rerum-accusamus')

All functions return false if input is invalid or not found.

mime.lookup(path)

Lookup the content-type associated with a file.

mime.lookup('json') // 'application/json'
mime.lookup('.md') // 'text/markdown'
mime.lookup('file.html') // 'text/html'
mime.lookup('folder/file.js') // 'application/javascript'
mime.lookup('folder/.htaccess') // false

mime.lookup('cats') // false

mime.contentType(type)

Create a full content-type header given a content-type or extension. When given an extension, mime.lookup is used to get the matching content-type, otherwise the given content-type is used. Then if the content-type does not already have a charset parameter, mime.charset is used to get the default charset and add to the returned content-type.

mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
mime.contentType('file.json') // 'application/json; charset=utf-8'
mime.contentType('text/html') // 'text/html; charset=utf-8'
mime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1'

// from a full path
mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8'

mime.extension(type)

Get the default extension for a content-type.

mime.extension('application/octet-stream') // 'bin'

mime.charset(type)

Lookup the implied default charset of a content-type.

mime.charset('text/markdown') // 'UTF-8'

var type = mime.types[extension]

A map of content-types by extension.

[extensions...] = mime.extensions[type]

A map of extensions by content-type.

License

MIT