0.1.1 ā€¢ Published 4 years ago

create-nvmrc v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

A GitHub action that commits an .nvmrc file to your repository that can also be used as an npm module or cli.

šŸ  Homepage

Install

npm install create-nvmrc

Usage

import { createNvmrcFile } from "create-nvmrc";

createNvmrcFile("/path/to/.nvmrc", "v12.16.3", true)
    .then(() => console.log("created"))
    .catch(err => console.log("failed", err));

createNvmrcFile("/path/to/.nvmrc", "12.16.3", true)
    .then(() => console.log("created"))
    .catch(err => console.log("failed", err));

createNvmrcFile("/path/to/.nvmrc", "lts", true)
    .then(() => console.log("created"))
    .catch(err => console.log("failed", err));

createNvmrcFile("/path/to/.nvmrc", "current", true)
    .then(() => console.log("created"))
    .catch(err => console.log("failed", err));

Run tests

npm run test

Author

šŸ‘¤ Rik Hoffbauer 62353999+rikhoffbauer@users.noreply.github.com (rikhoffbauer.github.io)

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 Rik Hoffbauer <62353999+rikhoffbauer@users.noreply.github.com> (rikhoffbauer.github.io). This project is MIT licensed.