scratchbook
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

Scratch Book

npm Build status

npm bundle size Dependencies

npm type definitions node-current NPM

Scratch Book is an annotation library written in Typescript that makes it easy to write documentation in a decentralized fashion.

  • Typescript can be used to write the documentation. Integrates perfectly with ts-node.
  • No dependency and lightweight.
  • Advanced matchers to query the notes.
  • Simple model for the notes that requires very little learning curve while still offering a lot of flexibility.
  • extensive tests coverage.

Usage

const myScratchBook: ScratchBook = {
    notes: [
        createScratchNote('about/scratchbook/description', 'Annotation library'),
        createScratchNote('about/scratchbook/github', 'scratchbook on github', 'https://github.com/flarebyte/scratchbook'),
        createScratchNote('about/other/...', 'Some other projects')
    ]
}
filterScratchBook(withPrefix('about/scratchbook/'))(myScratchBook)
// will return the description and the github link

Documentation

A detailed documentation for each functions is available

Installation

yarn add scratchbook

License

MIT © 2021 Flarebyte - Olivier Huin

Package Sidebar

Install

npm i scratchbook

Weekly Downloads

1

Version

0.4.1

License

MIT

Unpacked Size

66.2 kB

Total Files

12

Last publish

Collaborators

  • olih