|
|
# Node loader
|
|
|
|
|
|
If you'd like to skip using the `sjs` binary to compile your sweet.js code, you can use the node loader. This allows you to `require` sweet.js files that have the `.sjs` extension:
|
|
|
If you'd like to skip using the `sjs` command to compile your sweet.js code, you can use the node loader. This allows you to `require` sweet.js files that have the `.sjs` extension:
|
|
|
|
|
|
```js
|
|
|
var sjs = require('sweet.js'),
|
... | ... | |