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-grid@donapot/mylibtest@devorso/dcountdowndataormes-react-bridgeex-ikon-components-library@haysquare/svelte-multi-select@haysquare/svelte-multiselectip-design@hproinformatica/functions@gratrockstar/native-dialog-component@humanity.cash/typesdskcorenewgrids-over-polygon@eliteswap/token-lists@epigraph/epigraph-analytics@eki-group/svelvetglobulet@inti-ar/evm-chains@infinitebrahmanuniverse/nolb-glokartoffeldruck@kommunicate/kommunicate-chatbot-plugin@jretts/modified-sveltejszzzxxxyyy321123webche@aristidenf/streak-countercandlelabssdk@bezael-challenge/innoit-date-format@behzadebrhm/utils@bhzdbash/utilswrenchnpm-ui-componentsant-design-draggable-modal-4ant-design-draggable-modal-fixant-design-draggable-modal-fix-2async-busastra-ufo-sdk@zh0st/evm-chainscfb-cms-demoaxonv2sdkbackend-testing-coretiny-glob@xswap/token-lists@cute-apocalypse/react-tree@cryptocode99/token-listscotrader-dex-sdk@codesoup/floating-menu@codesoup/scroll-to-top@leiyulf/gantt-task-react@manoelmotoso/eslint-configmama-exporter@meysam213/react-leaflet@maujzs/branch-release@massivepixel/use-querymoonwalkerswap-default-token-listsreact-router-v5-v6-bridged-features@omneedia/isomorphic-gitreact-plugin-package-corereact-lightbox-pack-18support@neuraiproject/chainsresponsive-react-app@percent/percent-api-hooksresponsis-gantt-task-react@sleepfinance/chainp147-tablep148-tablenumhandlerserwredspher-componentsrefinejs-repo@qandq/plugins-commonnka-gantt-task-react@projectbabelfish/defikingdoms-sdksmart-glob@summonlabs/use-ada-handle-resolversushi-sdk-ftmsvelte-component-libsvelte-searchable-select@thinkincoin-libs/token-listspyreswap-sdktestapa@torswap/tor-token-lists@traitsniper/web3-react-connector@traitsniper/web3-react-v6-connector
0.1.4

5 years ago

0.1.0

6 years ago