Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clean-publish

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-publish - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

12

core.js

@@ -120,7 +120,9 @@ import { writeFile, readFile } from 'fs/promises'

let readme = await readFile(readmePath)
let name = repository.match(/[^/]+\/[^/]+$/)
const cleaned = readme.toString().split(/\n##\s*\w/m)[0] +
'\n## Docs\n' +
`Read **[full docs](https://github.com/${name}#readme)** on GitHub.\n`
await writeFile(readmePath, cleaned)
if (repository) {
let name = repository.match(/[^/]+\/[^/]+$/)
const cleaned = readme.toString().split(/\n##\s*\w/m)[0] +
'\n## Docs\n' +
`Read **[full docs](https://github.com/${name}#readme)** on GitHub.\n`
await writeFile(readmePath, cleaned)
}
}

@@ -36,2 +36,3 @@ export default [

/^\.remarkrc/,
/README\.[\w-]+\.md/
]
{
"name": "clean-publish",
"version": "3.0.1",
"version": "3.0.2",
"description": "Clean your package before publish",

@@ -5,0 +5,0 @@ "keywords": [

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