0.1.4 • Published 7 years ago

globalyzer v0.1.4

Weekly downloads
396,032
License
MIT
Repository
github
Last release
7 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@percent/percent-api-hooksip-designkartoffeldruckgrids-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-chainsaxonv2sdkastra-ufo-sdkant-design-draggable-modal-4ant-design-draggable-modal-fixant-design-draggable-modal-fix-2async-busbackend-testing-core@0xclearview/svelte-tiny-virtual-table@gratrockstar/native-dialog-component@codesoup/floating-menu@codesoup/scroll-to-top@haysquare/svelte-multi-select@haysquare/svelte-multiselectkjistik-component-librarysushi-sdk-ftmzzzxxxyyy321123tiny-glob@behzadebrhm/utils@bezael-challenge/innoit-date-format@bhzdbash/utils@infinitebrahmanuniverse/nolb-glo@leiyulf/gantt-task-react@meysam213/react-leaflet@neuraiproject/chains@nibbs66/buttons-pkg@kay.eg/pkg@kommunicate/kommunicate-chatbot-plugin@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-featuresglobuletcandlelabssdkcfb-cms-democodepert-svelte-uicotrader-dex-sdkdataormcscg-product-card@sleepfinance/chain@summonlabs/use-ada-handle-resolverdskcorenewes-react-bridgeex-ikon-components-library@massivepixel/use-query@maujzs/branch-release@manoelmotoso/eslint-config@cryptocode99/token-lists@inti-ar/evm-chains@aristidenf/streak-counter@eki-group/svelvet@eliteswap/token-lists@devorso/dcountdown@epigraph/epigraph-analytics@hproinformatica/functions@cute-apocalypse/react-tree@humanity.cash/types
0.1.4

7 years ago

0.1.0

8 years ago