Code Monkey home page Code Monkey logo

gsm7's Introduction

gsm7

A GSM7 encoder and decoder that transcodes between ASCII and GSM7 which is used as a default encoding for SMS transmission in GSM netwroks

Installation

npm install --save gsm7

Usage

Decoding:

const gsm7 = require('gsm7');

const asciiText = gsm7.decode(Buffer.from('54747A0EDAF4D2735018B4A1D0CB733AC8FC96838ED3E60DB44191CBE337B92CDFA45C', 'hex'));

Encoding:

const gsm7 = require('gsm7');

const buff = gsm7.encode('This ~is a ^test for GSM7 {decoder}.');

gsm7's People

Contributors

shokuie avatar

Stargazers

F.Richard avatar Robert Mircea avatar Mohsen Davari avatar Pete Murphy avatar Giacomo Antolini avatar

Watchers

 avatar

Forkers

gmg2719

gsm7's Issues

Regarding reverse solidus(\)

Hi @shokuie ,
we are implementing a project using smpp protocol for connecting to SMSC.
ideally in GSM 03.38 reverse solidus ("") is converted to 0x1b2f

your lib is converted the same to 9b 17

is it expected behavior or i am not using lib properly ?

image

ReferenceError: Buffer is not defined

when using : const buff = gsm7.encode('This ~is a ^test for GSM7 {decoder}.');
console.log(buff);
in reactjs
This error appears to me
index.js:87 Uncaught ReferenceError: Buffer is not defined
at Object.encode (index.js:87:17)
at onClick (OneClient.js:67:39)
at Object.Ve (react-dom.production.min.js:52:317)
at Ye (react-dom.production.min.js:52:471)
at react-dom.production.min.js:53:35
at jr (react-dom.production.min.js:100:68)
at _r (react-dom.production.min.js:101:380)
at react-dom.production.min.js:113:65
at De (react-dom.production.min.js:292:189)
at react-dom.production.min.js:50:57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.