Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #18 from kuebk/node10

Node v0.10.x support
  • Loading branch information...
commit b2830cde7f91fe3af9695f4378aef2c919d6494e 2 parents 8962202 + 72c1051
@pkrumins authored
View
3  .gitignore
@@ -0,0 +1,3 @@
+base64.node
+build
+rgba-terminal.dat
View
1  .npmignore
@@ -1,4 +1,3 @@
base64.node
build
rgba-terminal.dat
-.lock-wscript
View
2  base64.cc
@@ -188,4 +188,4 @@ extern "C" void init (Handle<Object> target)
target->Set(String::New("encode"), FunctionTemplate::New(base64_encode_binding)->GetFunction());
target->Set(String::New("decode"), FunctionTemplate::New(base64_decode_binding)->GetFunction());
}
-
+NODE_MODULE(base64, init)
View
29 binding.gyp
@@ -0,0 +1,29 @@
+{
+ "targets": [
+ {
+ "target_name": "base64",
+ "sources": [
+ "base64.cc"
+ ]
+ },
+ {
+ "target_name": "after_build",
+ "type": "none",
+ "dependencies": [
+ "base64"
+ ],
+ "actions": [
+ {
+ "action_name": "symlink",
+ "inputs": [
+ "<@(PRODUCT_DIR)/base64.node"
+ ],
+ "outputs": [
+ "<(module_root_dir)/base64.node"
+ ],
+ "action": ["ln", "-s", "<@(PRODUCT_DIR)/base64.node", "<(module_root_dir)/base64.node"]
+ }
+ ]
+ }
+ ]
+}
View
12 package.json
@@ -1,6 +1,6 @@
{
"name": "base64",
- "version": "2.0.6",
+ "version": "2.1.0",
"main": "base64",
"description": "A C++ module for node-js that does base64 encoding and decoding.",
"keywords": [
@@ -15,7 +15,10 @@
"email": "peteris.krumins@gmail.com",
"web": "http://www.catonmat.net",
"twitter": "pkrumins"
- },
+ },
+ "contributors": [
+ "Jakub Lekstan <kuebzky@gmail.com>"
+ ],
"license": "MIT",
"repository": {
"type": "git",
@@ -25,10 +28,7 @@
"tests": "tests"
},
"engines": {
- "node": ">=0.3.0"
- },
- "scripts": {
- "install": "node-waf configure build install"
+ "node": ">=0.8.0"
}
}
View
27 wscript
@@ -1,27 +0,0 @@
-import Options
-from os import unlink, symlink, popen
-from os.path import exists
-
-srcdir = "."
-blddir = "build"
-VERSION = "0.0.1"
-
-def set_options(opt):
- opt.tool_options("compiler_cxx")
-
-def configure(conf):
- conf.check_tool("compiler_cxx")
- conf.check_tool("node_addon")
-
-def build(bld):
- obj = bld.new_task_gen("cxx", "shlib", "node_addon")
- obj.target = "base64"
- obj.source = "base64.cc"
-
-def shutdown():
- if Options.commands['clean']:
- if exists('base64.node'): unlink('base64.node')
- else:
- if exists('build/default/base64.node') and not exists('base64.node'):
- symlink('build/default/base64.node', 'base64.node')
-
Please sign in to comment.
Something went wrong with that request. Please try again.