
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.
concise-readableformatter
Advanced tools
Format content using self-explanatory keywords instead of escaped characters
Format content using self-explanatory keywords instead of escaped characters
Turn this...
function createContent() {
let content =
'\t\t\tThis is the title of the content\n'
+ '\n\tGreetings, this is the beginning of the content.'
+ '\n\n\tThis is the second paragraph.'
+ '\n\n'
+ '\tSincerly yours,\n'
+ '\tX.O.'
+ '\n\n\n\n'
+ '~~~~~~~~~~~~~~~~ :-) ~~~~~~~~~~~~~~~~~'
return content
}
module.exports = createContent()
into this...
const readableFormatter = require('./ReadableFormatter')
const a = new readableFormatter()
a.custom('paragraphStart', a.newLine + a.indentation)
a.custom('signature', makeSignature())
a.custom('footer', '~~~~~~~~~~~~~~~~ :-) ~~~~~~~~~~~~~~~~~')
function createContent() {
let content =
+ a.triple('indentation') + `This is the title of the content`
+ a.newLine
+ a.paragraphStart + `Greetings, this is the beginning of the content. `
+ a.newLine
+ a.paragraphStart + `This is the second paragraph.`
+ a.double('newline')
+ a.signature
+ a.times(4, 'newline')
+ a.footer
return content
}
function makeSignature() {
return a.indentation + `Sincerly yours,` + a.newLine
+ a.indentation + `X.O.`
}
module.exports = createContent()
While writing code that automated the creation of Angular files based on external criteria, I found myself building strings for formatting content within files that was very, very ugly. I wanted to make the strings and loops that built them read more like natural language. this readableFormatter achieves this.
FAQs
Format content using self-explanatory keywords instead of escaped characters
The npm package concise-readableformatter receives a total of 4 weekly downloads. As such, concise-readableformatter popularity was classified as not popular.
We found that concise-readableformatter 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.