0.1.4 • Published 6 years ago

globalyzer v0.1.4

Weekly downloads
396,032
License
MIT
Repository
github
Last release
6 years ago

globalyzer Build StatusBuild status

Detect and extract the static part of a glob string

Utility to detect if a string contains a glob and then split it in a glob and none-glob part.

Install

npm install globalyzer --save

Usage

const globalyzer = require('globalyzer');

globalyzer('foo/bar/.git/');
// => { base: 'foo/bar/.git/', glob: '', isGlob: false }

globalyzer('foo/bar/**/baz');
// => { base: 'foo/bar', glob: '**/baz', isGlob: true }

API

globalyzer(glob, options)

Type: function Returns: { base, glob, isGlob }

Returns an object with the (non-glob) base path and the actual pattern and a is-glob flag.

options.strict

Type: Boolean Default: true

Be strict about what's a glob and what's not

glob

Type: String

Glob string to analyze.

Credit

This is a fork of is-glob and glob-base

License

MIT © Terkel Gjervig

cloud-archive-s3gql_din_mod@iobroker-community-adapters/iobroker.device-watcher@saaspe/componentsexpand-react-bridge@everything-registry/sub-chunk-1771p149-table@mediakular/svelte-data-gridkjistik-fixed-component-libraryphone-morkuptaleempresentationsvelte-searchable-selectwebchewrenchnpm-ui-componentstestapasvelte-component-libsvelte-crypt-text@donapot/mylibtest@cryptocode99/token-lists@cute-apocalypse/react-tree@percent/percent-api-hooksip-designkartoffeldruckkjistik-component-librarysushi-sdk-ftmzzzxxxyyy321123tiny-glob@aristidenf/streak-counter@behzadebrhm/utils@bezael-challenge/innoit-date-format@bhzdbash/utils@adfinitas.fr/adfinitas-ui@codesoup/floating-menu@codesoup/scroll-to-top@devorso/dcountdown@gratrockstar/native-dialog-component@haysquare/svelte-multi-select@haysquare/svelte-multiselect@hproinformatica/functions@humanity.cash/types@eki-group/svelvet@eliteswap/token-lists@infinitebrahmanuniverse/nolb-glo@leiyulf/gantt-task-react@inti-ar/evm-chains@manoelmotoso/eslint-config@meysam213/react-leaflet@massivepixel/use-query@neuraiproject/chains@nibbs66/buttons-pkg@epigraph/epigraph-analytics@maujzs/branch-release@kay.eg/pkg@kommunicate/kommunicate-chatbot-plugin@jretts/modified-sveltejs@omneedia/isomorphic-git@qandq/plugins-common@projectbabelfish/defikingdoms-sdkmpd-parser-1moonwalkerswap-default-token-listsp147-tablep148-tablenumhandlerreact-lightbox-pack-18supportpyreswap-sdkreact-gantt-chart7serwnode-geohashnka-gantt-task-reactredspher-componentsrefinejs-reporesponsis-gantt-task-reactresponsive-react-appreact-plugin-package-coresmart-globreact-router-v5-v6-bridged-featuresglobuletgrids-over-polygonmama-exporter@thinkincoin-libs/token-lists@torswap/tor-token-lists@traitsniper/web3-react-connector@traitsniper/web3-react-v6-connector@xswap/token-lists@zh0st/evm-chains@summonlabs/use-ada-handle-resolveraxonv2sdkastra-ufo-sdkant-design-draggable-modal-4ant-design-draggable-modal-fixant-design-draggable-modal-fix-2async-busbackend-testing-corecandlelabssdkcfb-cms-democodepert-svelte-uicotrader-dex-sdkdataormcscg-product-carddskcorenew
0.1.4

6 years ago

0.1.0

7 years ago