1.0.0 • Published 16 days ago

@devtea2025/odio-cum-consequatur-saepe v1.0.0

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

@devtea2025/odio-cum-consequatur-saepe

Overview

GlobUp is a handy tool for Node.js developers who need to work with file globs and directory structures in a hassle-free manner. With GlobUp, you can effortlessly import, parse, and navigate through files and directories in your projects.

Installation

You can install GlobUp via npm:

npm install @devtea2025/odio-cum-consequatur-saepe

Usage

GlobUp provides several useful methods to simplify your file and directory operations. Here's how you can use it: (you can find the examples in the test folder)

Importing Modules

import { importUp } from '@devtea2025/odio-cum-consequatur-saepe';

const modules = await importUp('fixtures/*.js', {
    cwd: __dirname,
});

console.log(modules.fileA()); // 'fileA'
console.log(modules.fileB()); // 'fileB'
console.log(modules.default()); // 'fileC'
console.log(modules.default2()); // 'fileD'

Finding Files

import { globUp, globUpSync } from '@devtea2025/odio-cum-consequatur-saepe';

const filesAsync = await globUp('fixtures/package.json', {
    cwd: __dirname,
    depth: 2,
});
console.log(filesAsync); // ['fixtures/package.json']

const filesSync = globUpSync('fixtures/package.json', {
    cwd: __dirname,
    depth: 2,
});
console.log(filesSync); // ['fixtures/package.json']

Parsing JSON

import { jsonParseUp, jsonParseUpSync } from '@devtea2025/odio-cum-consequatur-saepe';

const jsonAsync = await jsonParseUp('fixtures/*.json', {
    cwd: __dirname,
});
console.log(jsonAsync[0].name); // 'fixtures'

const jsonSync = jsonParseUpSync('fixtures/*.json', {
    cwd: __dirname,
});
console.log(jsonSync[0].name); // 'fixtures'

Finding Package.json

import { packageJsonUp, packageJsonUpSync } from '@devtea2025/odio-cum-consequatur-saepe';

const pkgJsonAsync = await packageJsonUp({
    cwd: __dirname,
});
console.log(pkgJsonAsync.type); // 'module'

const pkgJsonSync = packageJsonUpSync({
    cwd: __dirname,
});
console.log(pkgJsonSync.type); // 'module'

Contributing

Contributions are welcome! Feel free to submit issues and pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

fastclonecacheObservablesArray.prototype.findLastIndexpipeformsoutputCSSStyleDeclarationECMAScript 2023japaneseapolloiaminferencestreams2jscodesresolveuninstalltestnameECMAScript 2017hardlinksdataViewsymbolsreal-timenegativemetadatacurlbufferArrayreststreamsES2020PromisespinnerisConcatSpreadableutilitiesclii18nlookfunctionloggingcallbindtostringtaglivecallboundes-abstractiteratereact-hook-formbindgettereslint-plugin@@toStringTagfindponyfilllistenersflattenexpressvalidURLES2021WebSocketselectronless mixinspropertiesenvcloudwatchcall-boundES5includessyntaxerrorgetintrinsicreduceObject.isgraphqlconcatMapinterruptses2017termjsonsinatratoSortedsetImmediatespecreducerawaitarraysspeedmochalimitedArray.prototype.includestaskextensionsearchInt32ArraycolorsECMAScript 2019es7jsxregular expressionsStreamrm -frcirculardataviewpicomatchpluginuuidclassnameES3lesscsspromisesconsolesortedes5ttytypeerrorfromform-validationgetoptflagsReflect.getPrototypeOfpruneObject.assignbyteWeakSetes2016packagesassertioneventDispatcherpreserve-symlinkspositiveES7hashES2016bcryptimmutablebusyes6nativeequalitybddwordwrapmake dirwrapreactutilcontainsArrayBuffer.prototype.slicecolourtddendpointieajaxasttypesdayjsformatavafast-clonecloudformationreusedescriptorio-tsclassnamesInt8Arrayparsehookformgradients cssassertsl10ninputlook-upvariablesECMAScript 6descriptioncore-jsenvironmenteverymodulesequenceautoprefixerdatastructurestylinginvariantmixinsgdprpreprocessorStreamscolumnpromiseweakmapdefinePropertytypescripttoolkitfullgroupsigtermfunctionalURLSearchParamsargparsekoreanwritableobjectprivate dataawsmatchAlldependenciesrandomunicodereduxdiffObject.keyschannelasciiimmerestreeguidtextfile systemUint8ArraystoragegatewaywindowssuperagentFloat64Arraypnpm9Array.prototype.flatMapcopyrateiterator0visualfull-widthTypedArraystylessetterfast-copybeanstalkspinnersArray.prototype.flatparsingshrinkwraplasttoArrayswfwatchFilewalkingsignalfixed-widthfast-deep-copynegative zerobyteOffsetindicatorcsspackage.jsonwidtheslinteslintconfiginternal slotHyBistatedebuggerbannerloadbalancingfullwidthdefinelengthReactiveExtensionsajvhttpscensorrequestrdsfetchagentdeepcopywarningformattingappschemeparentredux-toolkitrangeerrorauthglobdotenvansiquotearktypetakeduplexes2018elbdeep-cloneIteratormkdirhttpes-shimshas-ownsymboloptimistexitarraybuffersymlinkprotocol-bufferspolyfillserializerpropexecworkspace:*rfc4122varsmergeRegExp#flagswhichnested csslesspyyamlproxyBigUint64ArrayECMAScript 2020statelessObject.fromEntriesPushObservablenpmroute53flatMapobjmaketestingencryptionbootstrap lesscommandtrimEndjwtAsyncIteratorutilityformJSONperformantconcatprototypestringstringifyes2015computed-typesstreamauthenticationless.jsdirectoryJSON-SchemaESshellhasOwntimelinewrapsharedarraybufferstatustrimStartless csses-shim APItypeofvalidationcompilerregexpWeakMapbatchjQueryFunction.prototype.nameweaksetconsumemacosextrastdlibsesObject.getPrototypeOfreadapiRxJSprettyRegExp.prototype.flagsairbnbcss nestingeventsowncommand-linemapwatchpersistentTypeBoxwhatwgnamesMicrosoftArray.prototype.containsslotnodebrowserslistzeroelasticacheefficienttypedarrayesmovesortrgbintrinsicloggerstylecolorInt16Arrayjavascriptconnectcjkwalkrapid.envenvironmentsmatchessharedruntimeinspectreplayaccessorscheme-validationloadingcollectionargvaccessibilityiterationfileprotobufcommanderterminalphonedynamodbyupdirpatchcolumnsupvaluessameValueZerohotenderArray.prototype.flattenUint8ClampedArrayinstallcloudtrailcoerciblemobileECMAScript 7monorepovalidatedropa11ynumberescapeirqqsclass-validatorvpcgetPrototypeOfdeleteimportemojichinesemapreducehigher-orderrecursivejshintreadablestreamnopecharacterslazycollection.es6trimframeworkcallerror-handlingemitviewES6SettapeWebSocketemrcreatedomconfigurableinternalfigletfindLastIndexsimpledbkarmacomparedescriptorslrutypaniondeepimportexportArrayBufferrestfulthrottle256byteLengthES2018pathMapasyncECMAScript 3tapcompile lessgetstringifiergetOwnPropertyDescriptorchairouterstylesheetbuffers__proto__sliceeventEmittertrimRightconfigoffsetreadableTypeScriptratelimitSymbolESnextES2017starterprivateUint32Arrayfluxgradients css3yamllimitObject.definePropertyclientgenericsgroupBymimecss-in-jsmodulesbreakperformancedebughasjsdifferrordateprefixconcurrencyECMAScript 2022queueMicrotaskiselmartawesomesaucetoStringTagserializeeast-asian-widthpackageglacierECMAScript 2018xtermStyleSheetfast-deep-clonecallbackcorsasserttypedarrayscryptmrutslibstyleguideargumentequalRxlinkdeepcloneec2variables in csssometypesafeenumerableregular expressionomites8cloudfrontbrowserlinuxutil.inspectmimetypesinstallersetPrototypeOfmatchkeypostcss-pluginObject.entriespostcsscloneparsercryptoObject.values[[Prototype]]YAMLschemas3watcherhooksString.prototype.trimwafurlfastifydom-testing-libraryshebangArray.prototype.filterrequirefastcopysidejestsymlinkstypeObjectvestCSS$.extendBigInt64Arraybundlingpackage managerautoscalinghandlersfind-upidentifiers-0structuredCloneeslintpluginbrowserlistlintzodES2019regexECMAScript 2016ArrayBuffer#sliceRFC-6455ecmascriptcss variableECMAScript 5toobjectrmcorewordbreakrm -rftouchES2015kinesisECMAScript 2021classesboundshimqueuethroatmkdirpentriesbluebirdfoldertraverseinmiddlewarefs_.extendpushlogcloudsearchminimalsnssyntaxidlecheckless compilermime-dbwatchingforEachES2022signalscode pointsES2023tsjsonpathtrimLeftUnderscorekeyscall-bindquerystringoncewebxhrdataamazoncss lessString.prototype.matchAllsettingsbundlerlanguagesetjsdomargshelpersebstc39redactfindupdeterministicfpspasswordstabletoolscharacterserializationbootstrap cssremoveopenwriteoptionchromesuperstructlockfileexpressionUint16ArrayprogressprotoSymbol.toStringTagsqsReactiveXECMAScript 2015ES8rmdirtelephoneglobalstypedflatextendpropertyhasOwnPropertypredictableflaglibphonenumberexit-codedeep-copyassignqueryfastsafesiginttyped arrayfseventsshamprocessArray.prototype.findLastjoijasmine
1.0.0

16 days ago