
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
This CLI helps speed up your workflow, project guidelines and code reusability by adding support for pasting template building blocks.
Install either to your project npm i pastry-cli or globally npm i -g pastry-cli
/pastries directory in your project root.pastry inside your terminal while in the root directory of your project.The cli will guide you through the rest of the steps.
You can replace any text including filenames with the name you provide when running pastry.
For example: running pastry -n testFile would change the following:
PLACEHOLDER.ts ~> testFile.ts
When changing text inside a file you have more options:
export default PLACEHOLDER' ~> export default testFile
export default UPPER_PLACEHOLDER' ~> export default TESTFILE
export default LOWER_PLACEHOLDER' ~> export default testfile
export default PASCAL_PLACEHOLDER' ~> export default TestFile
With optional snippets you can predefine parts of code you might want to use in a file.
For example this will prompt you if you want to include the log snippet:
// pastry-start log
console.log('I may be part of the file, yay!')
// pastry-end log
-n | --name define the new name
-p | --path define the new path to paste the blueprint into (from current working directory)
-t | --template specify the name of the template you want to use
-h | --help lists available commands
Configuration can be done by creating a .pastryconfig.json in the root directory for the project.
{
"templateDir": "{YOUR_TEMPLATE_DIRECTORY}" // default = pastries
}
FAQs
Node CLI for effectively pasting template files/directories
The npm package pastry-cli receives a total of 2 weekly downloads. As such, pastry-cli popularity was classified as not popular.
We found that pastry-cli 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.