File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 22
33# Postcode.js
44
5+ [ ![ Try postcode.js on RunKit] ( https://badge.runkitcdn.com/postcode.svg )] ( https://npm.runkit.com/postcode )
6+
57Utility methods for UK Postcodes.
68
79Included is a test suite that tests against all postcodes listed in the Ordnance Survey's postcode dataset as of January 2014.
Original file line number Diff line number Diff line change 1+ const Postcode = require ( "postcode" ) ;
2+
3+ const postcode = new Postcode ( "ec1v9lb" ) ;
4+
5+ postcode . valid ( ) ;
6+ postcode . normalise ( ) ;
7+
8+ postcode . outcode ( ) ;
9+ postcode . incode ( ) ;
10+ postcode . area ( ) ;
11+ postcode . district ( ) ;
12+ postcode . subDistrict ( ) ;
13+ postcode . sector ( ) ;
14+ postcode . unit ( ) ;
Original file line number Diff line number Diff line change 1313 "prettier" : " ~1.16.4"
1414 },
1515 "files" : [" index.js" ],
16+ "runkitExampleFilename" : " example.js" ,
1617 "nyc" : {
1718 "include" : [
1819 " index.js"
You can’t perform that action at this time.
0 commit comments