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

earl

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

earl

EARL (http://www.w3.org/WAI/intro/earl) implementation

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.9K
increased by1.06%
Maintainers
1
Weekly downloads
 
Created
Source

#node-earl

Node.js module to help producing EARL (http://www.w3.org/WAI/intro/earl) reports.

Documentation is available here : http://magnetik.github.com/node-earl/doc/

Example

var earl = require('../node-earl');
// Creating EARL document
var earlDocument = new earl.EarlDocument();
// add wit prefix
earlDocument.setPrefix("wit", "http://purl.org/dc/terms/");
// Create an assertion
earlDocument.addAssertion(":assert1", ":certificate", "wit:certificateProvidedSAN");
// Tells that this assertion is ok
earlDocument.getAssertion(":assert1").passed();
// Save the RDF data to the files
earlDocument.writeFile('test.txt');

is producing :

<assert1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/earl#Assertion> . 
<assert1> <http://www.w3.org/ns/earl#subject> <certificate> . 
<assert1> <http://www.w3.org/ns/earl#test> <http://purl.org/dc/terms/certificateProvidedSAN> . 
<assert1> <http://www.w3.org/ns/earl#result> <assert1Result> . 
<assert1Result> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/earl#TestResult> . 
<assert1Result> <http://www.w3.org/ns/earl#outcome> <http://purl.org/dc/terms/passed> . 

Any help is welcome !

License

Licensed under the GNU Lesser General Public License Version 3 (LGPLV3), copyright Baptiste Lafontaine 2011.

Keywords

FAQs

Package last updated on 16 Dec 2011

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