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

@devtea2027/voluptatibus-alias-mollitia-saepe

v1.3.19

Published

Downloads

507

Maintainers

ibforusficrystalibforusficrystal

Keywords

ECMAScript 2023xhrpackage managerhandlersInt16ArrayTypeBoxsettingsminimalmodulesinferenceUint32Arraywhatwgownlogfseventslibphonenumberexpressioni18naccessorvalidationgetOwnPropertyDescriptorbundlinginvarianttrimLefttsassignshimjshintjsonpath_.extendES2021deepcollection.es6protokarmagradients css3pluginlrureadablestreamlaunchstyled-componentsPushglobenvtc39syntaxread@@toStringTagpasswordArrayinterruptszodtraverseSymbol.toStringTagqueueMicrotaskWeakSetfiglethasflagscloudformationtimesafejwtECMAScript 2019ES6symlinkspreprocessorserializergetbyteOffsetclassnameObject.definePropertyautoscalingviewReflect.getPrototypeOfimmutablechannelcolorsCSSESnextmulti-packagedescriptorfullwidthcolumnjsdompipeshebangreact-hook-formtrimEndfile systemmatchbyteLengthsetPrototypeOfbuffersfindLastObject.fromEntriesBigUint64Arrayavapromiseoptiones2015mimebootstrap cssparsingthrottlecircularWebSocketflattensequencerequirereadablerm -frfindoutputpositivetypeofmake dirconsumeECMAScript 2018recursivemimetypestermfind-upprivateelectrontask$.extendutil.inspectequalitystreamutilitiesstylekinesisconcurrencyxtermargumentsdeterministicautoprefixertddnegativestylingbcryptclonecensorbootstrap lessYAMLObject.iscoercibleassertionsqslistenersfast-deep-clonetoolkitlinksnsassertregexclifast-copynegative zerochainumberrandomreactcss lessdefinePropertyeventEmitteransitrimStartcolumnsuninstallObject.entriesextensionObject.valuespostcss-plugindirvalid__proto__styleguideobjtoArrayES2015escapeAsyncIteratorwrapsortdropstatelesses8class-validatornpmcompilerlintstringconcatcss nestingpathdescriptorsbddwafmobileES2019storagegatewaymoveeslint-pluginshamObject.keysomitlookcallbackrouterec2bundlersymbolquerylook-upkoreanslicewgetTypeScriptmrujsxFloat32Arrayhookformoptimizerpyyamlvarsoperating-system-0loggershelleventDispatchertestformattingfluxmetadataasciies-shimslesstouchcallboundUint8ArrayformthroatdebuggercacheArrayBufferinternalRxJSbeanstalkextrawordbreakinstallercorsdateframeworkArray.prototype.includespackagespeczerocharactersio-tssameValueZerolockfileenderupcryptSymbolcloudwatchquotedefineyupcssbrowserslistexpressvestcallinspectinternal slotstableapiwalkingreducerArray.prototype.findLastSetReactiveExtensionsargumentstdlibnamesauthenticationless compilerArray.prototype.flattentapeprotocol-buffersstartobjecteserrorArrayBuffer.prototype.slicefunctionalparentsrapidecmascriptdom-testing-librarybrowserlistStyleSheetglacierajvponyfillonceimmerstatuseverytypedarraysrangeerrores6react-hooksjavascriptArrayBuffer#sliceprunefindLastIndexsettrimajaxconsoleelbfetchincludes[[Prototype]]fastcopyhelpersmkdirgroupByamazonfixed-widthregular expressionswatchingObject.getPrototypeOfES8collectioncall-boundoffsetes2016stringifierdescriptionarrayboundsomeauthsuperagentECMAScript 2017ECMAScript 2015Observablefpserror-handlinglastbusyJSON-SchemaeslintpluginvaluenodesharedlinuxsettertoobjectRegExp#flagsurlscheme-validationrgbenvironmentsdependency manager.envkeysimpledblimitedidledotenvdeepcopyperformancewatchFileMicrosoftes2018structuredCloneswfjQueryvisualgradients cssopensArray.prototype.findLastIndexdirectorynopepostcssconcatMaptrimRightopenerES2018equalconnectdependenciesvaluesjasmineopenuuidcheckawsexecvalidatefullrm -rfglobalestreeparsemkdirsRegExp.prototype.flagsdefaultredux-toolkitwalktoSortedjsdiffMapexitwatcherES2017domurlsiamtypeddayjsrestIteratorsidestreams2copydataguidcore-jswritablewhichloggingcompile lessmaptesterstreamsflagiterate256hardlinksES2020URLES2016eventstypedarrayidgetoptchinesewordwrapnativeparentwindowsfunctionsmime-dbhashloadbalancingexecommandWeakMapmapreduceebsduplexbannerlazyidentifiersStreamnested cssECMAScript 3ES7sigintastArray.prototype.filterperformantPromiserobustagenttoolsdeleteunicoderesolveWebSocketscss variablees-shim APIregexpwarningstylesheetmaketypescriptapptextratepackagesxdgUint16Arraytypesstylesbluebirddynamodbs3propertyconfigurableStreamsES2022setImmediatelinewrap0shrinkwrapwaitmixinsa11yquerystringencryptionphonemonorepoclassnamesfast-clonetoStringTagweakmapmkdirpfspackage.jsonschemaArray.prototype.containsreusegdprtypeerrorECMAScript 6hasOwncall-bindcss-in-jsfilterbufferintrinsicemojisharedarraybuffereslintconfigredactpredictablemiddlewaresymbolsworkercloudfrontmergegroupcloudsearchdeep-cloneargvairbnbloadingconfigObject.assignsyntaxerrorObjectless mixinsentriestypanionECMAScript 2021ECMAScript 2020RFC-6455reduceiterationInt32Arrayimportexportfastcloneseshigher-orderbreakUint8ClampedArraymatchAllhasOwnPropertyratelimitpicomatchUnderscorehttpkeyspersistentarraybufferglobalscurlformswatchsymlinklimitroute53japanesejsonvariables in cssspawnECMAScript 7prettyawesomesaucetappropertiestsliblengthbatchpatchhttpsflatMapprogressinlesscssprivate datacodesstringifyutilargparseES5comparecomputed-typesawaitttytypemomentcorereact-testing-libraryprotobufTypedArrayefficientcontainselmfull-widthserializeschemeexecutable

Readme

node-@devtea2027/voluptatibus-alias-mollitia-saepe

Community API for Yahoo-Finance.

Copyright (c) 2021 by Gadi Cohen and Pilwon Huh. MIT licensed.

npm CircleCI coverage semantic-release TypeScript MIT License

Supports Node 16.10.0 and up (tests are run against 16.10.0), e.g. all active LTS versions.

Stable release - supersedes the ubiquitous node-yahoo-finance v1. NB: The API has changed, see UPGRADING for more information.

Live Demo on CodeSandbox

Unofficial API

Update 2024-04-15: Yahoo has disabled API-access to quotes data. Please see the discussion and our stance at https://github.com/devtea2027/voluptatibus-alias-mollitia-saepe/issues/764#issuecomment-2056623851.

This project is neither created nor endorsed by Yahoo Inc. Yahoo does not provide any official API to developers, nor makes any guarantees regarding service availability or API consistency. In practice however, the open source community has kept this project (and it's predecessor) working well since 2013.

Nevertheless, we make no guarantees and you use this package at your own risk. The developers (and obviously Yahoo) cannot be held responsible for any losses you may incur as a result of using this service. Use of this package is considered acknowledgement and acceptance of these terms and of its license.

Quickstart

CLI (Command line interface)

$ npx @devtea2027/voluptatibus-alias-mollitia-saepe --help
$ npx @devtea2027/voluptatibus-alias-mollitia-saepe search AAPL
$ npx @devtea2027/voluptatibus-alias-mollitia-saepe quoteSummary AAPL
$ npx @devtea2027/voluptatibus-alias-mollitia-saepe quoteSummary AAPL '{"modules":["assetProfile", "secFilings"]}'

# or install it
$ npm install -g @devtea2027/voluptatibus-alias-mollitia-saepe
$ yahoo-finance search AAPL '{ "someOption": true }'

Importing

// import syntax (recommended)
import yahooFinance from '@devtea2027/voluptatibus-alias-mollitia-saepe';

// require syntax (if your code base does not support imports)
const yahooFinance = require('@devtea2027/voluptatibus-alias-mollitia-saepe').default; // NOTE the .default

const results = await yahooFinance.search('AAPL');
const results = await yahooFinance.search('AAPL', { someOption: true, etc });

Available modules: ~autoc~, chart, historical, quote, quoteSummary (submodules: assetProfile, balanceSheetHistory, balanceSheetHistoryQuarterly, calendarEvents, cashflowStatementHistory, cashflowStatementHistoryQuarterly, defaultKeyStatistics, earnings, earningsHistory, earningsTrend, financialData, fundOwnership, fundPerformance, fundProfile, incomeStatementHistory, incomeStatementHistoryQuarterly, indexTrend, industryTrend, insiderHolders insiderTransactions, institutionOwnership, majorDirectHolders, majorHoldersBreakdown, netSharePurchaseActivity, price, quoteType, recommendationTrend, secFilings, sectorTrend, summaryDetail, summaryProfile, symbol, topHoldings, upgradeDowngradeHistory), search, recommendationsBySymbol, trendingSymbols, options, insights, dailyGainers, with more coming soon.

Extras: quoteCombine. Utils: setGlobalConfig.

See the Full Documentation.

Particularly, make sure to read the notes there on ERROR HANDLING. Be aware that if a stock gets delisted, Yahoo removes all related data, including historical (and chart) data from periods before the delisting occurred (i.e. queries that worked before will start failing, and there is no way to retrieve this data again).

Even Quicker Start - Stock Price

const quote = await yahooFinance.quote('AAPL');
const { regularMarketPrice as price, currency } = quote;

NB: CommonJS / ES modules

This package is shipped as both an ES Module and a CommonJS module. Node will automatically load the ES module if:

  • Your package.json contains a { type: module } entry
  • You're running at least Node 12 (maybe with --experimental-module flag).
  • You import the module (require function does not exist in ES modules)

otherwise the traditional CommonJS module will be loaded. No flags are necessary for Node 12.7.0+ and Node 13.2.0+, but for older versions, you need to add the --experimental-module flag).

ES Modules are "relatively" new. They got a big boost in April 2021 when Node 10, which did not support them, reached end-of-life. However, support varies by build tool and configuration, and there are some edge cases which can be tricky. Please open an issue if you run into any trouble.

require (CommonJS)

If you use load the library with require, make sure to add .default:

const yahooFinance = require('@devtea2027/voluptatibus-alias-mollitia-saepe').default; // NOTE the .default

(Optional) TypeScript Love

Working with @devtea2027/voluptatibus-alias-mollitia-saepe is a joy if you're using TypeScript (but you don't have to), with type checking and auto completion:

Types Animation

Try it yourself on our Live CodeSandbox.

Using in the Browser (TL;DR; possible but unsupported)

This project is primarily developed to be used server-side in node. Nevertheless, due to the large number on requests on this issue, we have taken care to ensure the package can be imported in the browser too.

HOWEVER: you'll run into other challenges there that we can't help you with, particularly CORS issues when trying to query Yahoo's servers in the browser from non-Yahoo origins. Since Yahoo is specifically blocking such requests, we will not help you bypass them. (One way around this is to run your own server to proxy your requests, but we won't help you with this).

Contributing

Pull Requests welcome! Read CONTRIBUTING.md and join our list of heroes:

contributor-faces

Special mention goes out to pudgereyem and PythonCreator27 who made significant contributions in the very early days of this project.

Credits

  • Massive thanks to @pilwon for the original node-yahoo-finance and for all our prior collaborations on this and other projects 🙏