Skip to content

Commit

Permalink
feat(doc): #1249 remove makeNodeJsVersion
Browse files Browse the repository at this point in the history
- Update docs
- Remove `makeNodeJsVersion` section

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
  • Loading branch information
rohaquinlop committed Jan 11, 2024
1 parent 9ac0ee3 commit a50a252
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions docs/src/api/extensions/node.js.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@
## makeNodeJsVersion

Get a specific Node.js version interpreter.

Types:

- makeNodeJsVersion (`function str -> package`):
- (`enum [ "18" "20" "21" ]`):
Node.js version to use.

Example:

=== "main.nix"

```nix
# /path/to/my/project/makes/example/main.nix
{
makeNodeJsVersion,
makeScript,
...
}:
makeScript {
entrypoint = ''
node --version
'';
name = "example";
searchPaths = {
bin = [ (makeNodeJsVersion "18") ];
};
}
```

=== "Invocation"

```bash
$ m . /example

v16.2.0
```

## makeNodeJsModules

Cook the `node_modules` directory
Expand Down

0 comments on commit a50a252

Please sign in to comment.