Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ Now I'll never have to use that cursed perl script again!

Install easily with *npm*!

npm install ldif
npm install ldif-hufsm

### Parsing

##### Parsing strings
```javascript
var ldif = require('ldif'),
var ldif = require('ldif-hufsm'),
file = './rfc/example1.ldif',
input = require('fs').readFileSync(file,'utf8');

Expand All @@ -42,7 +42,7 @@ There's also a shorthand to read in a file (synchronously, as above):

##### File parsing shorthand
```javascript
var ldif = require('ldif');
var ldif = require('ldif-hufsm');
console.log(ldif.parseFile('./rfc/example1.ldif'));
```

Expand All @@ -51,7 +51,7 @@ In this case, example1.ldif specifies contents of two LDAP records.

##### Shifting records from parsed file
```javascript
var ldif = require('ldif');
var ldif = require('ldif-hufsm');
file = ldif.parseFile('./rfc/example1.ldif');

var record = file.shift();
Expand All @@ -63,7 +63,7 @@ property for all objects, but they can also be tested for
specific constructor types:

```javascript
var ldif = require('ldif');
var ldif = require('ldif-hufsm');
file = ldif.parseFile('./rfc/example1.ldif');

(file instanceof ldif.Container) === true
Expand All @@ -74,7 +74,7 @@ var ldif = require('ldif');

##### Record to plain object
```javascript
var ldif = require('ldif');
var ldif = require('ldif-hufsm');
file = ldif.parseFile('./rfc/example1.ldif'),
output_options = {};

Expand Down Expand Up @@ -118,7 +118,7 @@ All parsed data can be written back to LDIF format using a
`toLDIF()` method (on files or entries).

```javascript
var ldif = require('ldif');
var ldif = require('ldif-hufsm');
file = ldif.parseFile('./rfc/example1.ldif');

// the whole file
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/tapmodo/node-ldif.git"
"url": "https://github.com/6labs/node-ldif.git"
},
"author": "Tapmodo <khallman@tapmodo.com>",
"maintainers": [
Expand Down