🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

id-gen-path-segments

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

id-gen-path-segments

Generate an id from file path segments.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

id-gen-path-segments NPM version

Generate an id from file path segments.

Install

Install with npm:

npm i id-gen-path-segments --save-dev

Usage

var segments = require('id-gen-path-segments')({sep: '-'});
var IdGenerator = require('id-gen');
var renamer = new IdGenerator(segments);

var filepath = 'templates/foo/bar/baz/quux/zed.hbs';
console.log(renamer.next(filepath));
//=> 'baz-quux-zed'

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on June 23, 2014.

Keywords

file

FAQs

Package last updated on 23 Jun 2014

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