Socket
Socket
Sign inDemoInstall

@jsenv/url-meta

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/url-meta

[![npm package](https://img.shields.io/npm/v/@jsenv/url-meta.svg)](https://www.npmjs.com/package/@jsenv/url-meta) [![build](https://travis-ci.com/jsenv/jsenv-url-meta.svg?branch=master)](http://travis-ci.com/jsenv/jsenv-url-meta) [![codecov](https://codec


Version published
Weekly downloads
382
decreased by-14.16%
Maintainers
2
Weekly downloads
 
Created
Source

Url meta

npm package build codecov

Associate meta to url using pattern.

Example

import { urlToMeta } from "@jsenv/url-meta"

const metaMap = {
  "file:///**/*.js": {
    extension: "js",
  },
  "file:///**/*.json": {
    extension: "json",
  },
  "file:///file.js": {
    foo: true,
  },
}

urlToMeta({ url: "file:///file.js", metaMap }) // { extension: "js", foo: true }
urlToMeta({ url: "file:///file.json", metaMap }) // { extension: "json" }

FAQs

Package last updated on 22 Aug 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc