0.1.4 • Published 5 years ago

globalyzer v0.1.4

Weekly downloads
396,032
License
MIT
Repository
github
Last release
5 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-libraryglobuletkartoffeldruckmama-exportergrids-over-polygonip-designnka-gantt-task-reactmoonwalkerswap-default-token-listszzzxxxyyy321123webchewrenchnpm-ui-componentskjistik-component-librarysushi-sdk-ftmpyreswap-sdktestapasvelte-component-libsvelte-searchable-selectnumhandlerp147-tablep148-tablereact-lightbox-pack-18supportreact-plugin-package-corereact-router-v5-v6-bridged-featuresredspher-componentsresponsis-gantt-task-reactresponsive-react-apprefinejs-repotiny-globsmart-globserw@aristidenf/streak-counter@eliteswap/token-lists@eki-group/svelvet@epigraph/epigraph-analytics@haysquare/svelte-multi-select@haysquare/svelte-multiselect@maujzs/branch-release@massivepixel/use-query@manoelmotoso/eslint-config@infinitebrahmanuniverse/nolb-glo@jretts/modified-sveltejs@kommunicate/kommunicate-chatbot-plugin@meysam213/react-leaflet@devorso/dcountdown@donapot/mylibtest@codesoup/floating-menu@codesoup/scroll-to-top@cryptocode99/token-lists@cute-apocalypse/react-tree@projectbabelfish/defikingdoms-sdk@percent/percent-api-hooks@qandq/plugins-common@behzadebrhm/utils@bezael-challenge/innoit-date-format@bhzdbash/utils@neuraiproject/chains@hproinformatica/functions@inti-ar/evm-chains@humanity.cash/types@gratrockstar/native-dialog-component@leiyulf/gantt-task-react@sleepfinance/chain@omneedia/isomorphic-git@thinkincoin-libs/token-lists@traitsniper/web3-react-connector@traitsniper/web3-react-v6-connector@torswap/tor-token-lists@summonlabs/use-ada-handle-resolver@xswap/token-listsdataormbackend-testing-corecfb-cms-democandlelabssdkastra-ufo-sdkasync-buscotrader-dex-sdkaxonv2sdkant-design-draggable-modal-4ant-design-draggable-modal-fixant-design-draggable-modal-fix-2@zh0st/evm-chainses-react-bridgedskcorenewex-ikon-components-library
0.1.4

5 years ago

0.1.0

6 years ago