This is a node.js port of esms The original description of esms source code
A word about this source code:
ESMS was initially written together with a friend as our first real software project. We learned C while writing it, and frankly, this shows on parts of the code. So, the initial version was quite a lopsided lump of C - which nevertheless worked and did its job admirably. In later incarnations, when I rewrote and added features, I switched to C++ and tried to make the code cleaner, adhering to real programming practices. So the source code is a mash-up of older C code and newer C++ code.
Compiling:
All the source code compiles with any ANSI C++ compiler. Use the makefiles to see how to compile it.
License:
LGPL
-- Eli Bendersky (eliben@gmail.com)
##Objectives Objectives of this port is to allow esms work nicely with node.js based servers
##Compiling To compile node-esms, First install node.js
- Setup environment: sudo apt-get install -y build-essential libssh-dev git-core curl
- Download latest node.js source code: wget http://nodejs.org/dist/latest/node-v0.10.19.tar.gz
- Decompress node.js: tar -zxf node-v0.10.19.tar.gz
- Goto source folder: cd node-v0.10.19
- Create makefile: ./configure
- Compile: sudo make
- Install: sudo make install
Compiling node-esms from source code with node-gyp
- cd node-esms/
- node-gyp configure
- node-gyp build
- binary of esms can be found at ./src/build/Release/
- To test it node tests/test_esms.js
To use binary form, get it from npm
- npm install node-esms
##References