Skip to content

Commit

Permalink
Merge pull request fluidattacks#1255 from rohaquinlop/issue-1249
Browse files Browse the repository at this point in the history
feat(doc): fluidattacks#1249 rm makenodejsversion
  • Loading branch information
rohaquinlop authored Jan 11, 2024
2 parents 7fa3f58 + 8ccf5dc commit 4f42877
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 4f42877

Please sign in to comment.