
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@joshdcuneo/bible
Advanced tools
This packages contains Passage and Reference types which can be used to work with references to passages of the Bible.
npm install @joshdcuneo/bible
A reference refers to a book, a chapter in a book or a verse in a chapter in a book.
If you have trusted inputs which you know to be valid you can construct a reference directly:
new Reference('John', 3, 16)
Alternatively if you have untrusted input you can parse a string, this will throw if the reference is invalid:
// parses valid references
assert(Reference.parse('John 3:16') instanceof Reference)
//throws on invalid references
try {
Reference.parse('Not a reference')
} catch (error) {
assert(error instanceof Error)
}
A passage spans from and to a reference. These references may be the same if a passage is only one verse.
If you have trusted inputs which you know to be valid you can construct a passage directly:
new Passage(
new Reference('Matthew', 5, 1),
new Reference('Matthew', 5, 12)
)
Alternatively if you have untrusted input you can parse a string, this will throw if the reference is invalid:
// parses valid passages
assert(Passage.parse('Matthew 5:1-12') instanceof Reference)
//throws on invalid passages
try {
Passage.parse('Not a passage')
} catch (error) {
assert(error instanceof Error)
}
You can also extract a passage from a string containing other text, this will return null if no passages are found.
assert(Passage.extract('The reading is Matthew 5:1-12') instanceof Passage)
assert(Passage.extract('No passages to be found here') === null)
You can also extract multiple passages from a string.
const textWithTwoPassages = 'The readings today are Matthew 5:1-12 and John 3:16'
assert(Passage.extractAll(textWithTwoPassages).length === 2)
assert(Passage.extractAll('No passages to be found here').length === 0)
FAQs
[Full Documentation](https://joshdcuneo.github.io/bible)
We found that @joshdcuneo/bible 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.