
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
eurostar-booking-magnet
Advanced tools
Component that displays the booking magnet for Eurostar transactions
Component that displays the booking magnet for Eurostar transactions
It is presumed that you have jspm and npm installed on your machine globally and within your project.
You must also install plugin-sass installed to ensure sass imports work. You can install by running the following command:
$ jspm install scss=sass
Base Styles must be installed in order to use the component. For more detailed explaination please review the Styleguide README here
The Booking Magnet has 2 third party libraries which are preinstalled with Base Styles and 3 Eurostar components as dependencies.
Third party dependencies:
breakpoint-sasssusyEurostar dependencies:
eurostar-datepickereurostar-location-selecteurostar-traveller-selectInstall modules - note, the Booking Magnet has 3 dependencies: Datepicker, Location Select and Traveller Select. The command below will install them all:
$ jspm install npm:eurostar-booking-magnet && jspm install npm:eurostar-datepicker && jspm install npm:eurostar-traveller-select
If the component has styles (scss), you can import into main scss file as below.
@import "jspm:eurostar-booking-magnet/booking-magnet";
@import "jspm:eurostar-traveller-select/traveller-select";
@import "jspm:eurostar-datepicker/datepicker";
@import "jspm:eurostar-location-select/location-select";
Note the naming convention: jspm:<pkg-name>/<pkg-scss-file>;
If the component contains a Javascript, it should be imported into the the main Javascript file that jspm will be packaging (refer to http://jspm.io/docs/getting-started.html for bundling packages. However, this should be written in a task, e.g. using gulp).
import BookingMagnet from 'eurostar-booking-magnet';
import TravellerSelect from 'eurostar-traveller-select';
import Datepicker from 'eurostar-datepicker';
import LocationSelect from 'eurostar-location-select';
const locationSelect = new LocationSelect();
This imports the BookingMagnet class from the booking-magnet.js file. The TravellerSelect and Datepicker are also imported for DI. Note how the Location Select is initialised outside of the Booking Magnet
To initialise the BookingMagnet, use the following code:
const options = {};
options.TravellerSelect = TravellerSelect;
options.Datepicker = Datepicker;
const bookingMagnet = new BookingMagnet(options);
FAQs
Component that displays the booking magnet for Eurostar transactions
The npm package eurostar-booking-magnet receives a total of 56 weekly downloads. As such, eurostar-booking-magnet popularity was classified as not popular.
We found that eurostar-booking-magnet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.