Module
Modules extend the logic of Nix and cread a lot of possibilits.
Javascript
From the version 1.0.3
the JavascriptModule
has support to last version of Javascript. We use Express to make routes, requests and response!
You can use node_modules
in your folder. Try running npm install --save moment
:
|_node_modules
|_a.js
|_sub-folder
|_|_b.js
run -> nix
1
2
3
4
5
6
2
3
4
5
6
import moment from 'moment';
export default ({ req, res }) =>{
res.send(moment().format('YYYY-MM-DD'))
}
1
2
3
4
5
2
3
4
5
Html
<html>
<!-- a simple html file...need write this? -->
</html>
1
2
3
2
3
Markdown
# Title
A file with extension .md
<!-- I need write more? -->
1
2
3
4
5
2
3
4
5
JSX
Todo
Vue
Todo