Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
A distributed maintained collection of patterns that indicate that something probably is secret
A distributed maintained collection of patterns that indicate that something probably is secret.
This is useful if you want to filter sensitive values in a data set.
This module uses a very simple algorithm that will not catch everthing. Use at your own risk.
npm install is-secret --save
var isSecret = require('is-secret')
var data = {
username: 'watson',
password: 'f8bY2fg8',
card: '1234 1234 1234 1234' // credit card number
}
Object.keys(data).forEach(function (key) {
if (isSecret.key(key) ||
isSecret.value(data[key])) data[key] = '********'
})
console.log(data)
// {
// username: 'watson',
// password: '********',
// card: '********'
// }
If you need functionality similar to what is shown in this example, I suggest you take a look at the redact-secrets module.
secret.key(string)
Validates the given string
against a list of key names known to
typically indicate secret data.
Returns true
if the string
is considered secret. Otherwise false
.
secret.value(string)
Validates the given string
against a list of patterns that indicates
secret data.
Returns true
if the string
is considered secret. Otherwise false
.
FAQs
A distributed maintained collection of patterns that indicate that something probably is secret
The npm package is-secret receives a total of 24,825 weekly downloads. As such, is-secret popularity was classified as popular.
We found that is-secret demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.