Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sncf.js

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sncf.js

An easy to use javascript module to get all the information in real time about the trains ©SNCF (only in France)

  • 2.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

SNCF.JS - Introduction

Introduction

SNCF.JS is a JavaScript library that allows you to easily use the SNCF api.

drawing

Requirements

Only an api key is required to use the library. You can get one here


Installation

You can install SNCF.js using npm or yarn.

NPM

npm install sncf.js

Yarn

yarn install sncf.js

All operating systems are supported, including Mac, Windows, and Linux.


Quick start

Get your SNCF Token

Copy .env.backup to .env and fill the token in the file.

SNCF_TOKEN=<your token>
Import the library have fun!
const {Client} = require('sncf.js');
const sncf = new Client();

// Login to the SNCF api
sncf.login('your token' ) // returns a promise 

Documentation

The documentation is available here

You can find some examples here


Features

Easy to use

SNCF.JS is object-oriented which makes its use simple, fast and efficient

Lightning fast

SNCF.js is optimized to the maximum, and will soon have a caching system limiting the requests

Easy install

Installation takes only a few seconds because the package is very light.

✋ Responsive and friendly support

A bug, a request, need help? Do not hesitate to ask, we will be happy to answer you in the smallest details


Support

A technical support that listens, efficient and fast, join the Discussions.

If you find a defect or would like to submit a feature request, please create an Issue and we will investigate right away.

Do you have a general inquiry? Please feel free to contact me on instagram.

We :heart: feedback.

Keywords

FAQs

Package last updated on 27 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc