New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ietf-tools/idnits

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ietf-tools/idnits

Library / CLI to inspect Internet-Draft documents for a variety of conditions to conform with IETF policies.

  • 3.0.0-alpha.36
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source
IDNITS

Release License npm node-current

Library / CLI to inspect Internet-Draft documents for a variety of conditions to conform with IETF policies.

⚠️ This branch is for the new JS-based idnits3. For the older shell-based idnits2, view the v2 branch isntead.


Installation

  1. Install Node.js 18.x or later
  2. Install idnits:
npm install -g @ietf-tools/idnits

You can also run idnits directly without installing it globally using npx @ietf-tools/idnits <args>

Usage

As a CLI
idnits [args] <file path>
ArgumentsAliasDescriptionDefault
--filter-fFilter output to only certain severity types. Can be declared multiple times to filter multiple severity types.
Accepted values: errors, warnings, comments
--mode-mValidation mode, must be either normal, forgive-checklist or submission
Accepted shorthands: norm, n, f-c, fc, f, sub, s
normal
--no-progressDisable progress messages / animations in pretty output.
No effect in other output formats.
--offlineDisable validations that require an internet connection.
--output-oOutput format, must be either pretty, json or countpretty
--solarizedUse alternate colors for a solarized light theme terminal.
Only used with the pretty output format.
--year-yExpect the given year in the boilerplate
--help-hPrint the help text and exit
--versionPrint the version and exit
As a library

coming soon

Tests

Tests are made using the Jest library and are located under the tests directory.

You can run the suite of tests using:

# Make sure you installed dependencies first:
npm install

# Run the tests
npm test

Code coverage is expected to reach 100%. Ensure this is still the case when making edits / adding new functionality.

Development

  1. Clone the project
  2. Run npm install
  3. Run the CLI: (replacing <args> and <file path> with the desired flags + file path)
    node cli.js <args> <file path>
    

Keywords

FAQs

Package last updated on 22 Mar 2024

Did you know?

Socket

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.

Install

Related posts

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