
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
uri-template.js
Advanced tools
Node/Javascript URI Template (RFC 6570) that supports both expansion & extraction
Node.js/Javascript RFC 6570 URI Template implementation that supports both URI expansion and extraction.
A very simple usage
UriTemplate.expand('/{username}/profile', {'username': 'john'});
>> '/john/profile'
More examples (supports all expansion levels defined in RFC6570)
UriTemplate.expand('/search/{term:1}/{term}/{?q*,limit}', {
term: 'john',
q: ['a', 'b'],
limit: 10,
});
>> '/search/j/john/?q=a,b&limit=10'
Extract variables from URI.
UriTemplate.extract('/search/{term:1}/{term}/{?q*,limit}', '/search/j/john/?q=a&q=b&limit=10');
>>
(
'term:1': 'j',
term: 'john',
q: [
'a',
'b'
]
limit: 10
)
In browsers:
bower install uri-template.js
<script src="dist/uri-template.js"></script>
UriTemplate.expand(...)
In Node.js
npm install uri-template.js
UriTemplate = require('uri-template.js');
FAQs
Node/Javascript URI Template (RFC 6570) that supports both expansion & extraction
We found that uri-template.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.