Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
all-contributors-inferred
Advanced tools
Infers All Contributors settings from an existing README.md table and package.json. π
Infers All Contributors settings from an existing README.md table and package.json. π
Use this package's exported inferAllContributors
function to infer .all-contributorsrc
configuration options from package.json
and README.md
contents.
npm i all-contributors-inferred
import { inferAllContributors } from "all-contributors-inferred";
import fs from "node:fs/promises";
inferAllContributors({
packageJson: JSON.parse((await fs.readFile("package.json")).toString()),
readmeMd: (await fs.readFile("README.md")).toString(),
});
/*
[
{
"contributors": ...,
"projectName": ...,
"projectOwner": ...
}
]
*/
inferAllContributors
takes in a required options object.
It may have the following required properties:
packageJson
: Data from a parsed package.json
filereadmeMd
: Text read from the README.md
fileThe returned value is the same shape as you'd see in .all-contributorsrc
configuration options, but with everything optional.
See the exported InferredAllContributors
type.
All Contributors is one of many great pieces of tooling available for repositories. Repositories that use many tools often end up with a dauntingly large number of configuration files -- over a dozen in many cases.
Many users find it exhausting and overwhelming to open a new repository with many config files. Reducing the number of config files in repositories can help make developing them more approachable.
π‘ Wish this was built into All Contributors? Lend a π to all-contributors/all-contributors#808 Make the .all-contributorsrc file optional (infer contributors from README.md)!
See .github/CONTRIBUTING.md
, then .github/DEVELOPMENT.md
.
Thanks! π
Josh Goldberg π π» π§ π π§ π π β οΈ π€ |
π This package was templated with
create-typescript-app
using thecreate
engine.
FAQs
Infers All Contributors settings from an existing README.md table and package.json. π
The npm package all-contributors-inferred receives a total of 119 weekly downloads. As such, all-contributors-inferred popularity was classified as not popular.
We found that all-contributors-inferred demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 0 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.