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-textip-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@sleepfinance/chaindskcorenewes-react-bridgeex-ikon-components-librarycandlelabssdkcfb-cms-democodepert-svelte-uicotrader-dex-sdkdataormcscg-product-cardkjistik-component-librarysushi-sdk-ftmzzzxxxyyy321123tiny-glob@infinitebrahmanuniverse/nolb-glompd-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-featuresglobulet@humanity.cash/types@hproinformatica/functions@haysquare/svelte-multi-select@haysquare/svelte-multiselect@inti-ar/evm-chains@kommunicate/kommunicate-chatbot-plugin@nibbs66/buttons-pkg@summonlabs/use-ada-handle-resolver@leiyulf/gantt-task-react@jretts/modified-sveltejs@kay.eg/pkg@opzlab/library@omneedia/isomorphic-git@percent/percent-api-hooks@0xclearview/svelte-tiny-virtual-table@projectbabelfish/defikingdoms-sdk@bezael-challenge/innoit-date-format@bhzdbash/utils@behzadebrhm/utils@aristidenf/streak-counter@cryptocode99/token-lists@codesoup/floating-menu@codesoup/scroll-to-top@cute-apocalypse/react-tree@devorso/dcountdown@donapot/mylibtest@manoelmotoso/eslint-config@eliteswap/token-lists@massivepixel/use-query@maujzs/branch-release@eki-group/svelvet@neuraiproject/chains
0.1.4

7 years ago

0.1.0

8 years ago