GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - feathersdev/pinion: A fast and typesafe code generator

BranchesTags
Open more actions menu

Latest commit

 

History

129 Commits
129 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
packages/pinion
packages/pinion
 
 
.gitignore
.gitignore
 
 
.oxlintrc.json
.oxlintrc.json
 
 
LICENSE
LICENSE
 
 
changelog.md
changelog.md
 
 
lerna.json
lerna.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 
vitest.workspace.ts
vitest.workspace.ts
 
 

Repository files navigation

Pinion

CI Download Status

A fast and typesafe code generator

Pinion is a task runner and scaffolding tool that lets you create code generators for any language. Using TypeScript, it gives you full flexibility over what you can do and provides typesafe templating out-of-the box.

Quick start

Install Pinion into your project via:

npm install @featherscloud/pinion --save-dev

Then create a generator file e.g. in generators/readme.tpl.ts like this:

import { type PinionContext, toFile, renderTemplate } from '@featherscloud/pinion'

const readme = () => `
# Hello world

This is a readme generated by Pinion

Copyright (c) ${new Date().getFullYear()}
`

export const generate = (init: PinionContext) =>
  Promise.resolve(init)
    .then(renderTemplate(readme, toFile('readme.md')))

Then run it with npx pinion generators/readme.tpl.ts.

Documentation

The full documentation can be found in the package readme.

License

Copyright (c) 2026 Feathers Cloud Inc.

Licensed under the MIT license.

About

A fast and typesafe code generator

github.com/feathersdev/pinion/blob/main/packages/pinion/readme.md

Topics

code-generationgeneratorstypescript

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

88 stars

Watchers

3 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.