
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
format-people
Advanced tools
Format a list of authors, contributors, or collaborators.
Install with npm:
$ npm install --save format-people
var format = require('format-people');
Format a list of people like objects (e.g. authors, contributors, and collaborators) into the specified format.
Params
arr
{Array}: Array of people objects.options
{Object}: Additional optionsoptions.format
{String}: Formatter function used to format the array. See formatters for more details.returns
{Mixed}: Formatted array of people. Returned type depends on formatter.Example
var people = [
{ name: 'Brian Woodward' }
];
var table = format(people, {format: 'table'});
console.log(table);
Returns the array as-is without any formatting.
Params
arr
{Array}: Array of people to format.returns
{Array}: Unmodified array of people.Example
var people = [
{ login: 'doowb' }
];
var formatted = formatters.noop(people);
console.log(formatted);
//=> [{login: 'doowb'}]
Returns the array of people formatted as a markdown table.
Params
arr
{Array}: Array of people to format.returns
{String}: Markdown tableExample
var people = [
{ login: 'doowb', contributions: 100, html_url: 'https://github.com/doowb' },
{ login: 'jonschlinkert', contributions: 50, html_url: 'https://github.com/jonschlinkert' }
];
var formatted = formatters.table(people);
console.log(formatted);
//=> | **Commits** | **Contributor**<br/> |
//=> | --- | --- |
//=> | 100 | [doowb](https://github.com/doowb) |
//=> | 50 | [jonschlinkert](https://github.com/jonschlinkert) |
Returns the array of people formatted as a markdown list.
Params
arr
{Array}: Array of people to format.returns
{String}: Markdown listExample
var people = [
{ login: 'doowb', contributions: 100, html_url: 'https://github.com/doowb' },
{ login: 'jonschlinkert', contributions: 50, html_url: 'https://github.com/jonschlinkert' }
];
var formatted = formatters.list(people);
console.log(formatted);
//=> **Commits** / **Contributor**
//=> + 100 [doowb](https://github.com/doowb)
//=> + 50 [jonschlinkert](https://github.com/jonschlinkert)
Returns the array of people formatted as an aligned code block.
Params
arr
{Array}: Array of people to format.returns
{String}: Markdown code block for alignmentExample
var people = [
{ login: 'doowb', contributions: 100, html_url: 'https://github.com/doowb' },
{ login: 'jonschlinkert', contributions: 50, html_url: 'https://github.com/jonschlinkert' }
];
var formatted = formatters.aligned(people);
console.log(formatted);
//=> COMMITS / CONTRIBUTOR
//=> ------- | -----------
//=> 100 doowb
//=> 50 jonschlinkert
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for avice on opening issues, pull requests, and coding standards.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Brian Woodward
Copyright © 2016, Brian Woodward. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.30, on September 09, 2016.
FAQs
Format a list of authors, contributors, or collaborators.
The npm package format-people receives a total of 107 weekly downloads. As such, format-people popularity was classified as not popular.
We found that format-people demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.