Socket
Socket
Sign inDemoInstall

user-meta

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

user-meta

Read user name, email and URL from .npmrc or .gitconfig


Version published
Maintainers
1
Created
Source

user-meta

Read user name, email and URL from .npmrc or .gitconfig.

Installation

npm install user-meta

Usage

const { name, email, url } = require('user-meta');

How it works

It tries to read data from your npm and Git configs:

PropertynpmGit
namenpm get init-author-namegit config user.name
emailnpm get init-author-emailgit config user.email
urlnpm get init-author-url

Npm has priority over Git. git binary is required and used to read Git configuration. Don’t use this module if performance is important.

Changelog

The changelog can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

Keywords

FAQs

Package last updated on 23 Aug 2017

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