You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

allsubs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allsubs - npm Package Compare versions

Comparing version
0.1.1
to
0.1.2
+1
-1
demo.js
var allsubs = require('./lib/allsubs.js');
console.log(allsubs.languages);
allsubs.get('matrix', 'ro', 20, function(err, subs){
allsubs.get('the matrix', 1999, 'ro', 20, function(err, subs){
console.log(err, subs);
});
var http = require('http'),
parseString = require('xml2js').parseString;
exports.get = function(movie_title, language, limit, callback){
var subs = [];
exports.get = function(movie_title, year, language, limit, callback){
var subs = [],
path = '/api/'+(limit || 50)+'/'+encodeURIComponent(movie_title.replace(' ', '-'))+'-'+year+'-'+(language || 'en');
var req = http.request({
host: 'allsubs.org',
port: 80,
path: '/api/'+(limit || 50)+'/'+encodeURIComponent(movie_title)+'-'+(language || 'en'),
path: path,
method: 'GET'

@@ -11,0 +13,0 @@ }, function(res) {

{
"name": "allsubs",
"version": "0.1.1",
"version": "0.1.2",
"description": "A node.js module for allsubs.org API",

@@ -5,0 +5,0 @@ "main": "index.js",