feature-pipeline
v1.0.11
Published
Internal dependency resolver utility
Readme
my-docs-cli
Browse your documents and images right from the terminal — no browser needed.
Install
npm install -g my-docs-cliUsage
my-docsUse arrow keys to navigate, Enter to open a doc, and follow on-screen prompts to go back or exit.
Adding Your Own Documents
Add a .json file inside the docs/ folder using this structure:
{
"title": "My Document",
"category": "Guide",
"content": [
{ "type": "heading", "text": "My Heading" },
{ "type": "text", "text": "Paragraph text goes here." },
{
"type": "image",
"alt": "My Diagram",
"ascii": [
" ┌───────────┐",
" │ Diagram │",
" └───────────┘"
]
}
]
}Content block types:
| Type | Fields |
|-----------|---------------------------------|
| heading | text |
| text | text |
| image | alt, ascii (array of lines) |
Programmatic API
const myDocs = require('my-docs-cli');
// List all docs
const docs = myDocs.listDocs();
console.log(docs);
// Get a specific doc by title
const doc = myDocs.getDoc('Getting Started Guide');
console.log(doc);Publishing Your Own Package
- Edit
package.json— setname,version,author - Run
npm login - Run
npm publish - Users install it:
npm i -g your-package-name
