<commit_before>---
layout: post
title: Write a nodejs addon native extension
---

# Introduction
- We are going to write and build a nodejs addon.
- Use libnotify packages in order to show desktop notifications.
- [Source code](https://github.com/charlyraffellini/nan-addon-node-notify)

- This example was runed in the following environment:
  - SO: Ubuntu 14.04.2 LTS
  - nodejs v0.12.7
  - node-gyp v2.0.2
  - Python 2.7.6
  - gcc 4.8.4
  - CPU Architecture: x86_64<commit_msg>Add my previous post link.<commit_after>---
layout: post
title: Write a nodejs addon native extension
---

# Introduction

##### This post is a nodejs addon version of my [previous post](http://charlyraffellini.github.io/Roll-out-my-own-Javascript-native-API/).

- We are going to write and build a nodejs addon.
- Use libnotify packages in order to show desktop notifications.
- [Source code](https://github.com/charlyraffellini/nan-addon-node-notify)

- This example was runed in the following environment:
  - SO: Ubuntu 14.04.2 LTS
  - nodejs v0.12.7
  - node-gyp v2.0.2
  - Python 2.7.6
  - gcc 4.8.4
  - CPU Architecture: x86_64
{'fraction_non_alphanumeric': 0.11310592459605028, 'fraction_numerical': 0.03949730700179533, 'mean_word_length': 3.1760299625468167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3629126', 'n_tokens_mistral': 411, 'n_tokens_neox': 380, 'n_words': 124}