
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
fastft-api-client
Advanced tools
A client for the Financial Times FastFT content and search APIs
A fastft posts client for the browser or node.js
This module depends on es6 Promises being available as a global. At present this needs polyfilling in most environments. Note that popular promise libraries e.g. Q, Reqwest, don't necessarily conform to the es6 standard
npm install -S es6-promise
Then at the start of your application code
GLOBAL.Promise = require('es6-promise').Promise;
Include the es6-promise-polyfill or similar in the head of your page
Sets config values:
host
- the host name for requests to clamo (may contain http://
etc if your environment requires it)limit
- the default maximum number of posts to fetch in a search. Defaults to 10, but can be specified on a per-request basisoutputfields
- the fields to return from any clamo request (see src/outputfields.json for the default)timeout
- timeout threshold for requests. Defaults to no limitmethod
- request method to use, 'GET' or 'POST', defaulting to 'GET'Retrieves a single post from clamo. Returns a promise for an object with two properties
response
: The XHR response object receivedpost
: An instance of a Post
model (see below for details)Retrieves posts matching the given query, ordered by most recent first. Accepts two parameters
query
: A string conforming to clamo's query syntax e.g. location: London
. Defaults to ''params
: An object containing two properties - limit
and offset
- which enable pagination of results. limit
defaults to 10 and offset
to 0Returns a promise for an object with two properties
response
: The XHR response object receivedposts
: An array of instances of the Post
model (see below for details)Exposed as a property on the object exported by this module. This contains utilties for accessing properties of a given post. Exact structure to be determined
As well as searching for raw strings clamo will use the foloowing to query a post's metadata
Use AND
, OR
, NOT
, (
and )
to construct complex search terms
e.g. bananas AND from: "01/12/2013" AND NOT location: "Americas"
To run tests locally run
npm install; bower install; make test
To debug tests in the browser run
./node_modules/karma/bin/karma start --browsers Chrome --singleRun false
(Note you will have to run make testRebuild
too every time you change a file. If you have karma-cli
installed globally you can use karma
instead of ./node_modules/karma/bin/karma
)
To update test data from the clamo api run make refreshtestdata
FAQs
A client for the Financial Times FastFT content and search APIs
We found that fastft-api-client 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.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.