Skip to content

Commit

Permalink
add npm package
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Apr 17, 2024
1 parent 8c54d8d commit e5e34fd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bindings/node/tim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<p align="center">
<img src="https://raw.githubusercontent.com/openpeeps/tim/main/.github/timengine.png" alt="Tim - Template Engine" width="200px" height="200px"><br>
⚡️ A high-performance template engine & markup language<br>
<strong>Fast</strong> • <strong>Compiled</strong> • Written in Nim 👑
</p>

<p align="center">
<code>npm install @openpeeps/tim</code>
</p>

<p align="center">
<a href="https://openpeeps.github.io/tim/">API reference</a> | <a href="https://github.com/openpeeps/tim/releases">Download</a><br><br>
<img src="https://github.com/openpeeps/tim/workflows/test/badge.svg" alt="Github Actions"> <img src="https://github.com/openpeeps/tim/workflows/docs/badge.svg" alt="Github Actions">
</p>

## Key features
29 changes: 29 additions & 0 deletions bindings/node/tim/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "@openpeeps/tim",
"version": "0.1.1",
"description": "This is Tim ⚡️ A high-performance template engine & markup language written in Nim",
"main": "src/tim.js",
"keywords": [
"template-engine",
"markup-language",
"template",
"engine",
"napi",
"c++",
"tim-language",
"bindings",
"frontend",
"nim-language",
"nim"
],
"author": "OpenPeeps",
"license": "LGPL-3.0",
"homepage": "https://openpeeps.dev",
"repository": {
"directory": "github",
"url": "https://github.com/openpeeps/tim"
},
"bugs": {
"url": "https://github.com/openpeeps/tim/issues"
}
}
7 changes: 7 additions & 0 deletions bindings/node/tim/src/tim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = (() => {
try {
return require('./bin/tim-' + process.platform + '.node');
} catch (e) {
//
}
})();

0 comments on commit e5e34fd

Please sign in to comment.