Socket
Socket
Sign inDemoInstall

readme-md-generator

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readme-md-generator - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "readme-md-generator",
"version": "0.5.0",
"version": "0.5.1",
"description": "CLI that generates beautiful README.md files.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -104,3 +104,6 @@ <h1 align="center">Welcome to readme-md-generator 👋</h1>

<td align="center"><a href="http://milad.nekofar.com"><img src="https://avatars3.githubusercontent.com/u/147401?v=4" width="75px;" alt="Milad Nekofar"/><br /><sub><b>Milad Nekofar</b></sub></a><br /><a href="https://github.com/kefranabg/readme-md-generator/commits?author=nekofar" title="Code">💻</a> <a href="https://github.com/kefranabg/readme-md-generator/commits?author=nekofar" title="Tests">⚠️</a> <a href="#ideas-nekofar" title="Ideas, Planning, & Feedback">🤔</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/hgb123"><img src="https://avatars0.githubusercontent.com/u/18468577?v=4" width="75px;" alt="Bao Ho"/><br /><sub><b>Bao Ho</b></sub></a><br /><a href="https://github.com/kefranabg/readme-md-generator/commits?author=hgb123" title="Code">💻</a> <a href="https://github.com/kefranabg/readme-md-generator/commits?author=hgb123" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/zizizi17"><img src="https://avatars0.githubusercontent.com/u/10571073?v=4" width="75px;" alt="Sasha Semanyuk"/><br /><sub><b>Sasha Semanyuk</b></sub></a><br /><a href="https://github.com/kefranabg/readme-md-generator/commits?author=zizizi17" title="Code">💻</a></td>
</tr>

@@ -107,0 +110,0 @@ </table>

@@ -6,3 +6,3 @@ const ejs = require('ejs')

const fs = require('fs')
const { isNil } = require('lodash')
const { isNil, unescape } = require('lodash')

@@ -22,3 +22,3 @@ const chooseTemplate = require('./choose-template')

try {
await promisify(fs.writeFile)(README_PATH, readmeContent)
await promisify(fs.writeFile)(README_PATH, unescape(readmeContent))
spinner.succeed('README created')

@@ -25,0 +25,0 @@ } catch (err) {

@@ -66,3 +66,3 @@ const fs = require('fs')

it('should call writeFile with correct parameters', async () => {
const readmeContent = 'content'
const readmeContent = 'John &amp; Bryan'
fs.writeFile = jest.fn((_, __, cb) => cb(null, 'done'))

@@ -74,3 +74,3 @@

expect(fs.writeFile.mock.calls[0][0]).toBe(README_PATH)
expect(fs.writeFile.mock.calls[0][1]).toBe(readmeContent)
expect(fs.writeFile.mock.calls[0][1]).toBe('John & Bryan')
})

@@ -77,0 +77,0 @@ })

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc