
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
npm-text-auto
Advanced tools
Automatically convert your text files to unix style line ending before publishing your module.
I'm no longer developing npm-text-auto
. I have decided it's better to disable autocrlf and stick to LF line endings on all platforms. I highly recommend you do that same.
This module has not been completely tested and should be considered a beta. It's intended to modify your source files, so use with caution. Bug reports and pull request are welcome.
Before publishing, npm-text-auto
converts text files to Unix style line endings (\n). After publishing, it converts them back to the default line ending for your OS (ie. \r\n for Windows).
This acts like having * text=auto
in your .gitattributes file, only for npm publish.
npm-text-auto
can be used as a local module or run from the command line.
Install as a development dependency
npm install npm-text-auto --save-dev
Add hook scripts to package.json
"scripts": {
"prepublish": "npm-text-auto",
"postpublish": "npm-text-auto"
}
Publish
Install as a global module
npm install npm-text-auto -g
Run the hook manually:
npm-text-auto prepublish
npm-text-auto postpublish
npm-text-auto
does not modify any files..npmignore
(or .gitignore
) file are processed using the same module as npm. Excluded files will not have their EOL modified.package.json
, files in node_modules
, and files in version control directories files ( .git
.hg
.svn
CVS
) are never modified..gitattributes
is not supported. If enough people need this, I may add it.FAQs
Automatically convert your text files to unix style line ending before publishing your module.
We found that npm-text-auto 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.