![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
simplebuild-moduledoc
Advanced tools
Autogenerate README files for simplebuild modules.
Simplebuild is a specification for universal JavaScript task automation. This module has tasks to help you generate README files and (eventually) other documentation. It takes advantage of standard Simplebuild descriptors so you don't have to repeat yourself.
This README is an example of the output of this tool. It was generated from the descriptors in messages.js.
This is a Node.js library. Install Node, then:
npm install simplebuild-moduledoc
(add --save
or --save-dev
if you want)
This library exports this API:
createReadme
: Create a README file for a Simplebuild module.createReadme(options, success, failure)
Create a README file for a Simplebuild module. The text of the README is generated from the module's task descriptors.
options
: an object containing the following properties:
output
: Name of file to write README to. Defaults to ./README.md
.module
: The module to document. Must be a simplebuild module with task descriptors.descriptors
: Module descriptors: name, summary, description, and copyright. name
is the npm name of the module. summary
is a one-sentence description of the module. description
is a paragraph describing the module that picks up where summary
leaves off. copyright
is the copyright; e.g., 'Copyright (c) 2014 James Shore.'success()
: called if createReadme
finishes successfully.
failure(message)
: called if createReadme
doesn't finish successfully. Detailed error messages (if any) are written to stdout and a summary error message is provided in the message
parameter.
This library is a simplebuild module. In addition to being used as a standalone library (as described above), it can also be used with simplebuild extensions and mappers. For more information about simplebuild, see the Simplebuild GitHub page.
The MIT License (MIT)
Copyright (c) 2014 James Shore
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Autogenerate README files for simplebuild modules
The npm package simplebuild-moduledoc receives a total of 1 weekly downloads. As such, simplebuild-moduledoc popularity was classified as not popular.
We found that simplebuild-moduledoc 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.