Skip to content

Commit 5d40def

Browse files
committed
Add readme and username & email in npm distribution of node port.
1 parent fa46320 commit 5d40def

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

source/ports/node_port/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
2+
//registry.npmjs.org/:username=${NPM_USERNAME}
3+
//registry.npmjs.org/:email=${NPM_EMAIL}

source/ports/node_port/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<div align="center">
2+
<a href="https://metacall.io" target="_blank"><img src="https://raw.githubusercontent.com/metacall/core/master/deploy/images/logo.png" alt="M E T A C A L L" style="max-width:100%; margin: 0 auto;" width="80" height="80">
3+
<p><b>M E T A C A L L</b></p></a>
4+
<p>A library for providing inter-language foreign function interface calls</p>
5+
</div>
6+
7+
# Abstract
8+
9+
**METACALL** is a library that allows calling functions, methods or procedures between programming languages. With **METACALL** you can transparently execute code from / to any programming language, for example, call Python code from NodeJS.
10+
11+
`sum.py`
12+
``` python
13+
def sum(a, b):
14+
return a + b
15+
```
16+
17+
`main.js`
18+
``` javascript
19+
const { metacall, metacall_load_from_file } = require('metacall');
20+
21+
metacall_load_from_file('py', [ 'sum.py' ]);
22+
23+
metacall('sum', 3, 4); // 7
24+
```

0 commit comments

Comments
 (0)