New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tschallacka/googlemapsrender

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tschallacka/googlemapsrender

A utility to render google maps with special json instructions.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

A simple utility to check if a String contains all elements of a String array in the provided order.

Sometimes you just wish to pattern match, without having to figure out all the regex for it and just go!

This utility does just that. It matches the string against all the strings in the test array, in the given order.
When your string contains all the matches in given pattern, it will return true.

'hello world' will match against ['hel', ' ', 'rld'] but not against ['rld', 'hel'] because the order is different.

installation:

npm install @tschallacka/shouldmatchall

usage:

var matches = require('@tschallacka/shouldmatchall');

matches ( STRING, ARRAY)

STRING: The string that should be searched.

ARRAY: An Array that contains strings, in the order it should be matched against.

example:

var matches = require('@tschallacka/shouldmatchall');
if(matches('Friends, hold my arms! For in the mere act of penning \
        my thoughts of this Leviathan, they weary me, and make me \
        faint with their out-reaching comprehensiveness of sweep, as \
        if to include the whole circle of the sciences, and all the \
        generations of whales, and men, and mastodons, past, present, \
        and to come, with all the revolving panoramas of empire on earth,\
        and throughout the whole universe, not excluding its suburbs. - Moby Dick', 
        [
            'arms!', 
            'out-reaching',
            'mastodons',
            'revolving panoramas',
            'excluding',
            'suburbs.'
        ])) {
            console.log('yes it's moby dick');
        }

Keywords

google maps

FAQs

Package last updated on 01 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts