Socket
Socket
Sign inDemoInstall

ntf

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ntf

A network testing framework


Version published
Weekly downloads
7
increased by75%
Maintainers
1
Weekly downloads
 
Created
Source

ntf

ntf is a network testing framework.

Requirements

  • node
  • npm

Usage

# install library
npm install ntf

# add node_modules bin to path
export PATH="./node_modules/.bin:$PATH"

# create test file
cat << EOF > silas.sewell.org.js
var ntf = require('ntf')
  , test = ntf.http.test(exports, 'http://silas.sewell.org')

test.get('homepage', '/', function(test, res) {
  test.statusCode(res, 200)
  test.hasContent(res, 'Silas Sewell')
  test.done()
})
EOF

# run tests
ntf silas.sewell.org.js

License

This work is licensed under the MIT License (see the LICENSE file).

FAQs

Package last updated on 19 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